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

Method avgPrice

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

* Gets the average prices of a given symbol * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#current-average-price * @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

3900 * @return {promise or undefined} - omitting the callback returns a promise
3901 */
3902 async avgPrice(symbol: string, params: Dict = {}) {
3903 params.symbol = symbol;
3904 return await this.publicSpotRequest('v3/avgPrice', params);
3905 }
3906
3907 /**
3908 * Gets the prices of a given symbol(s)

Callers

nothing calls this directly

Calls 1

publicSpotRequestMethod · 0.95

Tested by

no test coverage detected