bitmart-api
Version:
Complete & robust Node.js SDK for BitMart's REST APIs and WebSockets, with TypeScript declarations.
11 lines (10 loc) • 430 B
TypeScript
export type WsOperation = 'subscribe' | 'unsubscribe' | 'login' | 'access' | 'request';
export interface WsSpotOperation<TWSTopic extends string = string> {
op: WsOperation;
args: TWSTopic[];
}
export interface WsFuturesOperation<TWSTopic extends string> {
action: WsOperation;
args: TWSTopic[];
}
export type WsRequestOperation<TWSTopic extends string> = WsSpotOperation<TWSTopic> | WsFuturesOperation<TWSTopic>;