UNPKG

kucoin-universal-sdk

Version:
90 lines (89 loc) 2.38 kB
import { WsMessage } from '../../../model/common'; import { WebSocketMessageCallback } from '../../../internal/interfaces/websocket'; import { Response } from '../../../internal/interfaces/serializable'; export declare class BalanceEvent implements Response<WsMessage> { /** * Margin of the cross margin position */ crossPosMargin: string; /** * Margin of the isolated margin order */ isolatedOrderMargin: string; /** * Frozen Balance */ holdBalance: string; /** * Equity */ equity: string; /** * Version. When holding a cross margin position, the available balance may change with fluctuations in the mark price, leading to discrepancies in the available balance for the same version number. */ version: string; /** * Available Balance */ availableBalance: string; /** * Margin of the isolated margin position, including isolated margin funding fees */ isolatedPosMargin: string; /** * Wallet Balance */ walletBalance: string; /** * Isolated margin funding fee */ isolatedFundingFeeMargin: string; /** * Unrealized PNL in cross margin mode */ crossUnPnl: string; /** * Total margin under cross margin mode */ totalCrossMargin: string; /** * Currency Symbol */ currency: string; /** * Unrealized PNL in isolated margin mode */ isolatedUnPnl: string; /** * Margin of the cross margin order */ crossOrderMargin: string; /** * Last modified time */ timestamp: 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): BalanceEvent; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): BalanceEvent; } export type BalanceEventCallback = (topic: string, subject: string, data: BalanceEvent) => void; export declare class BalanceEventCallbackWrapper implements WebSocketMessageCallback { private callback; constructor(callback: BalanceEventCallback); onMessage(msg: WsMessage): void; }