UNPKG

kucoin-universal-sdk

Version:
62 lines (61 loc) 1.67 kB
import { WsMessage } from '../../../model/common'; import { WebSocketMessageCallback } from '../../../internal/interfaces/websocket'; import { Response } from '../../../internal/interfaces/serializable'; export declare class CallAuctionInfoEvent implements Response<WsMessage> { /** * Symbol */ symbol: string; /** * Estimated price */ estimatedPrice: string; /** * Estimated size */ estimatedSize: string; /** * Sell ​​order minimum price */ sellOrderRangeLowPrice: string; /** * Sell ​​order maximum price */ sellOrderRangeHighPrice: string; /** * Buy ​​order minimum price */ buyOrderRangeLowPrice: string; /** * Buy ​​order maximum price */ buyOrderRangeHighPrice: string; /** * Timestamp (ms) */ 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): CallAuctionInfoEvent; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): CallAuctionInfoEvent; } export type CallAuctionInfoEventCallback = (topic: string, subject: string, data: CallAuctionInfoEvent) => void; export declare class CallAuctionInfoEventCallbackWrapper implements WebSocketMessageCallback { private callback; constructor(callback: CallAuctionInfoEventCallback); onMessage(msg: WsMessage): void; }