* 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)
| 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 |
nothing calls this directly
no test coverage detected