kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
66 lines (65 loc) • 1.43 kB
TypeScript
import { WsMessage } from '../../../model/common';
import { WebSocketMessageCallback } from '../../../internal/interfaces/websocket';
import { Response } from '../../../internal/interfaces/serializable';
export declare class ExecutionEvent implements Response<WsMessage> {
/**
*
*/
symbol: string;
/**
*
*/
sequence: number;
/**
*
*/
side: string;
/**
*
*/
size: number;
/**
*
*/
price: string;
/**
*
*/
takerOrderId: string;
/**
*
*/
makerOrderId: string;
/**
*
*/
tradeId: string;
/**
*
*/
ts: number;
private constructor();
/**
* common response
*/
commonResponse?: WsMessage;
setCommonResponse(response: WsMessage): void;
/**
* Convert the object to a JSON string.
*/
toJson(): string;
/**
* Create an object from a JSON string.
*/
static fromJson(input: string): ExecutionEvent;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): ExecutionEvent;
}
export type ExecutionEventCallback = (topic: string, subject: string, data: ExecutionEvent) => void;
export declare class ExecutionEventCallbackWrapper implements WebSocketMessageCallback {
private callback;
constructor(callback: ExecutionEventCallback);
onMessage(msg: WsMessage): void;
}