* Gets the market asset of given symbol * @param {string} symbol - the public api endpoint * @return {undefined}
(symbol: string)
| 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 |
no outgoing calls
no test coverage detected