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

Method getMarket

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

* Gets the market asset of given symbol * @param {string} symbol - the public api endpoint * @return {undefined}

(symbol: string)

Source from the content-addressed store, hash-verified

4460 * @return {undefined}
4461 */
4462 getMarket(symbol: string) {
4463 if (symbol.endsWith('BTC')) return 'BTC';
4464 else if (symbol.endsWith('ETH')) return 'ETH';
4465 else if (symbol.endsWith('BNB')) return 'BNB';
4466 else if (symbol.endsWith('XRP')) return 'XRP';
4467 else if (symbol.endsWith('PAX')) return 'PAX';
4468 else if (symbol.endsWith('USDT')) return 'USDT';
4469 else if (symbol.endsWith('USDC')) return 'USDC';
4470 else if (symbol.endsWith('USDS')) return 'USDS';
4471 else if (symbol.endsWith('TUSD')) return 'TUSD';
4472 }
4473
4474 /**
4475 * Get the account binance lending information

Callers 2

live-tests.cjsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected