MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / deliveryTickerStream

Method deliveryTickerStream

src/node-binance-api.ts:5986–5993  ·  view source on GitHub ↗

* Delivery WebSocket prevDay ticker * @param {symbol} symbol name or false. can also be a callback * @param {function} callback - callback function * @return {string} the websocket endpoint

(symbol?: string, callback = console.log)

Source from the content-addressed store, hash-verified

5984 * @return {string} the websocket endpoint
5985 */
5986 deliveryTickerStream(symbol?: string, callback = console.log) {
5987 const reconnect = () => {
5988 if (this.Options.reconnect) this.deliveryTickerStream(symbol, callback);
5989 };
5990 const endpoint = symbol ? `${symbol.toLowerCase()}@ticker` : '!ticker@arr';
5991 const subscription = this.deliverySubscribeSingle(endpoint, data => callback(this.dTickerConvertData(data)), { reconnect });
5992 return (subscription as any).url;
5993 }
5994
5995 /**
5996 * Delivery WebSocket miniTicker

Callers 1

reconnectMethod · 0.95

Calls 2

dTickerConvertDataMethod · 0.95

Tested by

no test coverage detected