@exchange-connect/coinex
Version:
Coinex ( https://www.coinex.com ) SDK
30 lines (29 loc) • 878 B
TypeScript
/**
* Assets' Realtime Data
* @namespace Streams.futures.assets
*/
/**
* Subscribe to Assets Realtime Data
* @async
* @function subscribe
* @memberof Streams.futures.assets
* @param {Array<String>} markets Markets Name
* @param {function} onData On Data Incomming Callback
*/
export declare function futuresAssetSubscribe(markets: string[], onData: () => any): void;
/**
* Unsubscribe from Assets Realtime Data
* @async
* @function unsubscribe
* @memberof Streams.futures.assets
*/
export declare function futuresAssetUnsubscribe(): void;
/**
* Query the Assets' Data on specific markets
* @async
* @function query
* @memberof Streams.futures.assets
* @param {Array<String>} markets Markets Name
* @returns {Promise<Object>} Promise object represents the result of the request
*/
export declare function futuresAssetQuery(markets: string[]): Promise<any>;