@exchange-connect/coinex
Version:
Coinex ( https://www.coinex.com ) SDK
48 lines (47 loc) • 1.49 kB
TypeScript
/**
* Assets' Realtime Data
* @namespace Streams.spot.assets
*/
/**
* Subscribe to Assets Realtime Data
* @async
* @function subscribe
* @memberof Streams.spot.assets
* @param {Array<String>} markets Markets Name
* @param {function} onData On Data Incomming Callback
*/
export declare function subscribe(markets: string[], onData: () => any): Promise<any>;
/**
* Unsubscribe from Assets Realtime Data
* @async
* @function unsubscribe
* @memberof Streams.spot.assets
*/
export declare function assetUnsubscribe(): Promise<any>;
/**
* Query the Assets' Data on specific markets
* @async
* @function query
* @memberof Streams.spot.assets
* @param {Array<String>} markets Markets Name
* @returns {Promise<Object>} Promise object represents the result of the request
*/
export declare function assetQuery(markets: string[]): Promise<any>;
/**
* Query all Assets' Data
* @async
* @function queryAll
* @memberof Streams.spot.assets
* @returns {Promise<Object>} Promise object represents the result of the request
*/
export declare function assetQueryAll(): Promise<any>;
/**
* Query the Assets' Data on specific markets and account
* @async
* @function queryAccount
* @memberof Streams.spot.assets
* @param {Number} account Account ID
* @param {Array<String>} markets Markets Name
* @returns {Promise<Object>} Promise object represents the result of the request
*/
export declare function assetQueryAccount(account: number, markets: string[]): Promise<any>;