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

Method bookTickers

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

* Gets the book tickers of given symbol(s) * @see https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/market-data-endpoints#symbol-order-book-ticker * @param {string} symbol - the symbol * @return {promise or undefined} - omitting the callback returns a promise

(symbol?: string, params: Dict = {})

Source from the content-addressed store, hash-verified

3971 * @return {promise or undefined} - omitting the callback returns a promise
3972 */
3973 async bookTickers(symbol?: string, params: Dict = {}): Promise<{ [key: string]: BookTicker }> {
3974 if (symbol) params.symbol = symbol;
3975 const data = await this.publicSpotRequest('v3/ticker/bookTicker', params);
3976 return this.bookPriceData(data);
3977 }
3978
3979 /**
3980 * Gets the prevday percentage change

Callers

nothing calls this directly

Calls 2

publicSpotRequestMethod · 0.95
bookPriceDataMethod · 0.95

Tested by

no test coverage detected