@exchange-connect/coinex
Version:
Coinex ( https://www.coinex.com ) SDK
37 lines (36 loc) • 1.08 kB
TypeScript
/**
* indexPrices' Realtime Data
* @namespace Streams.spot.indexPrice
*/
/**
* Subscribe to Index Price Realtime Data
* @async
* @function subscribe
* @memberof Streams.spot.indexPrice
* @param {function} onData On Data Incomming Callback
*/
export declare function indexPriceSubscribe(onData: () => any): void;
/**
* Unsubscribe from Index Price Realtime Data
* @async
* @function unsubscribe
* @memberof Streams.spot.indexPrice
*/
export declare function indexPriceUnsubscribe(): void;
/**
* Query the Index Prices' Data on specific market
* @async
* @function query
* @memberof Streams.spot.indexPrice
* @param {String} market Market name
* @returns {Promise<Object>} Promise object represents the result of the request
*/
export declare function indexPriceQuery(market: string): Promise<any>;
/**
* Query all of the Index Prices' Data
* @async
* @function queryAll
* @memberof Streams.spot.indexPrice
* @returns {Promise<Object>} Promise object represents the result of the request
*/
export declare function indexPriceQueryAll(): Promise<any>;