kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
42 lines (41 loc) • 1.28 kB
TypeScript
import { WsMessage } from '../../../model/common';
import { WebSocketMessageCallback } from '../../../internal/interfaces/websocket';
import { Response } from '../../../internal/interfaces/serializable';
export declare class KlinesEvent implements Response<WsMessage> {
/**
* symbol
*/
symbol: string;
/**
* Start time of the candle cycle,open price,close price, high price,low price,Transaction volume,Transaction amount
*/
candles: Array<string>;
/**
* now(us)
*/
time: 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): KlinesEvent;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): KlinesEvent;
}
export type KlinesEventCallback = (topic: string, subject: string, data: KlinesEvent) => void;
export declare class KlinesEventCallbackWrapper implements WebSocketMessageCallback {
private callback;
constructor(callback: KlinesEventCallback);
onMessage(msg: WsMessage): void;
}