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

Method futuresBookTickerStream

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

* Futures WebSocket bookTicker * @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

5786 * @return {string} the websocket endpoint
5787 */
5788 futuresBookTickerStream(symbol?: string, callback = console.log) {
5789 const reconnect = () => {
5790 if (this.Options.reconnect) this.futuresBookTickerStream(symbol, callback);
5791 };
5792 const endpoint = symbol ? `${symbol.toLowerCase()}@bookTicker` : '!bookTicker';
5793 const subscription = this.futuresSubscribeSingle(endpoint, data => callback(this.fBookTickerConvertData(data)), { reconnect });
5794 return (subscription as any).url;
5795 }
5796
5797 /**
5798 * Websocket futures klines

Callers 2

reconnectMethod · 0.95

Calls 2

Tested by

no test coverage detected