@exchange-connect/coinex
Version:
Coinex ( https://www.coinex.com ) SDK
27 lines (26 loc) • 909 B
TypeScript
/**
* Subscribe to Statuses Realtime Data on Specific Market
* @async
* @function subscribe
* @memberof Streams.spot.status
* @param {String} market Market's Name (null: Subscribe to all markets)
* @param {function} onData On Data Incomming Callback
*/
export declare function statusSubscribe(market: string | null, onData: () => any): void;
/**
* Unsubscribe from Statuses Realtime Data
* @async
* @function unsubscribe
* @memberof Streams.spot.status
*/
export declare function statusUnsubscribe(): void;
/**
* Query the Statuses' Data on specific market
* @async
* @function query
* @memberof Streams.spot.status
* @param {String} market Market Name
* @param {Number} period In Seconds, e.g. 86400 is the past 24 hours
* @returns {Promise<Object>} Promise object represents the result of the request
*/
export declare function statusQuery(market: string, period: number): Promise<any>;