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

Method depth

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

* Gets the depth information for a given symbol * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book * @param {string} symbol - the symbol * @param {int} limit - limit the number of returned orders * @return {promise or undefined}

(symbol: string, limit = 100)

Source from the content-addressed store, hash-verified

3889 * @return {promise or undefined} - omitting the callback returns a promise
3890 */
3891 async depth(symbol: string, limit = 100): Promise<OrderBook> {
3892 const data = await this.publicSpotRequest('v3/depth', { symbol: symbol, limit: limit });
3893 return this.parseOrderBook(data, symbol);
3894 }
3895
3896 /**
3897 * Gets the average prices of a given symbol

Callers

nothing calls this directly

Calls 2

publicSpotRequestMethod · 0.95
parseOrderBookMethod · 0.95

Tested by

no test coverage detected