How to pull crypto market data similar to yfinance?

Viewed 14

Is there any function similar to yfinance to pull out all the supported crypto-pairs like for example ETHUSDT, ADAUSDT, XRPUSDT, etc.. So far the only pair that works with yfinance library is the BTC ticker.

My code looks like this:

ticker=["BTCUSDT", "ETHUSDT", "ADAUSDT", "XRPUSDT"]

stocks = yf.download (ticker, start="2020-01-01", end="2022-01-01")

And the output I receive is this:

[100%**] 4 of 4 completed 3 Failed downloads:

- ETH: No data found, symbol may be delisted

- ADA: No data found for this date range, symbol may be delisted

- XRP: No data found for this date range, symbol may be delisted

The BTC pair is pulled successfully while the others do not. Thank you in advance if anyone knows how to pull crypto market data correctly.

0 Answers
Related