I am using yfinance
in python to get crypto symbol pair prices. It gives real time data via its yf.download(tickers=tickers, period=period, interval=interval)
function in a very nice format. I am wondering is there any function in yfinance to pull out all the supported crypto-pairs without doing any webscraping on this
To my knowledge YahooFinance uses CoinMarketCap to retrive crypto market information.
CoinMarketCap offers the API you request here: (not free) https://pro-api.coinmarketcap.com/v1/exchange/market-pairs/latest
I suggest you transfer to the Binance API. It includes the endpoint GET /api/v1/exchangeInfo
as documented here:
https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md
Your direct endpoint would be https://api.binance.com/api/v1/exchangeInfo