binance / binance-public-data

Details on how to get Binance public data
1.4k stars 444 forks source link

Question #318

Closed JoseBarros23 closed 3 months ago

JoseBarros23 commented 4 months ago

How can I get real-time prices of the coins, in USDT terms, using ticker 24hr?

I checked the "tests/spot/market/test_ticker_price.py" section of this repository, but it didn't helped that much.

Could you please explain it to me?

aisling-2 commented 3 months ago

@JoseBarros23 This repo is to obtain historical data, if you want to retrieve real-time prices, you need to use the API directly: https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream