Historical Data for XRP through API

In order to download the historical data for ENJ, I’ve used:

client = Client(config.apiKey_test,config.apiSecurity_test)
testing = requests.get(‘https://api.binance.com/api/v3/klines?symbol=ENJBUSD&interval=1h&limit=1000’).json()

which works well. I had to remove “testnet=True” for this to work.

I’ve tried the same ting for XRP without any luck, anyone able to get historical data from the API?
I tried XRPBUSD and XRPUSDT.

There’s result for:

https://api.binance.com/api/v3/klines?symbol=XRPBUSD&interval=1h&limit=1000
https://api.binance.com/api/v3/klines?symbol=XRPUSDT&interval=1h&limit=1000

If you’ve not getting locally, it’s a programming question.

If useful, there’s also https://data.binance.vision/, where you can daily and monthly klines data.

1 Like