There is a task to get three parameters for all cryptocurrencies (BTC, ETH, USDT, BNB and others):
- price in USD;
- 24h volume;
- market cap
var socket = new WebSocket(‘wss://stream.binance.com:9443/ws/!ticker@arr’)
but there comes information only regarding cryptocurrency pairs, BTC / USDT, etc.
I think that the value of BTC in dollars is not the value of BTC/USDT.
I am not an expert in the field of cryptocurrencies, but I need to receive information via websocket as in this table:
I will be glad to help the community)
Thank you for your reply!
Do you mean that the price in USD of a BTC can be found from a pair BTC/USDT from ticker stream? Are price BTC/USD and price BTC/USDT the same thing?
24h volume BTC/USDT from ticker is 385892.41605000
but on Markets page 24h BTC volume is 29,920.79M
How can I get 24h volume like on Market page (Cryptocurrency Market | Coin Prices & Market Cap | Binance)?