UNPKG

kucoin-universal-sdk

Version:
36 lines (35 loc) 1.17 kB
import { WsMessage } from '../../../model/common'; import { WebSocketMessageCallback } from '../../../internal/interfaces/websocket'; import { Response } from '../../../internal/interfaces/serializable'; export declare class MarginModeEvent implements Response<WsMessage> { /** * The SYMBOL is the key with value \"CROSS\" or \"ISOLATED\" */ data: { [key: string]: 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): MarginModeEvent; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): MarginModeEvent; } export type MarginModeEventCallback = (topic: string, subject: string, data: MarginModeEvent) => void; export declare class MarginModeEventCallbackWrapper implements WebSocketMessageCallback { private callback; constructor(callback: MarginModeEventCallback); onMessage(msg: WsMessage): void; }