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

Method deliveryMiniTickerStream

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

* Delivery WebSocket miniTicker * @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

5999 * @return {string} the websocket endpoint
6000 */
6001 deliveryMiniTickerStream(symbol?: string, callback = console.log) {
6002 const reconnect = () => {
6003 if (this.Options.reconnect) this.deliveryMiniTickerStream(symbol, callback);
6004 };
6005 const endpoint = symbol ? `${symbol.toLowerCase()}@miniTicker` : '!miniTicker@arr';
6006 const subscription = this.deliverySubscribeSingle(endpoint, data => callback(this.dMiniTickerConvertData(data)), { reconnect });
6007 return (subscription as any).url;
6008 }
6009
6010 /**
6011 * Delivery WebSocket bookTicker

Callers 1

reconnectMethod · 0.95

Calls 2

Tested by

no test coverage detected