kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
70 lines (69 loc) • 1.44 kB
TypeScript
import { WsMessage } from '../../../model/common';
import { WebSocketMessageCallback } from '../../../internal/interfaces/websocket';
import { Response } from '../../../internal/interfaces/serializable';
export declare class TradeEvent implements Response<WsMessage> {
/**
*
*/
makerOrderId: string;
/**
*
*/
price: string;
/**
*
*/
sequence: string;
/**
*
*/
side: string;
/**
*
*/
size: string;
/**
*
*/
symbol: string;
/**
*
*/
takerOrderId: string;
/**
*
*/
time: string;
/**
*
*/
tradeId: string;
/**
*
*/
type: string;
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): TradeEvent;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): TradeEvent;
}
export type TradeEventCallback = (topic: string, subject: string, data: TradeEvent) => void;
export declare class TradeEventCallbackWrapper implements WebSocketMessageCallback {
private callback;
constructor(callback: TradeEventCallback);
onMessage(msg: WsMessage): void;
}