How to get historic Bitcoin Price Index using coinbase or any other open source API

0 votes

I would like to get a history of the bitcoin price. For example, I would like to be able to provide a start_date and end_date for a search/filter. Is there any open-source and trusted API with almost accurate prices for this?

I have noticed that coinbase only returns the spot/current price and I cannot pass more params to filter

curl https://api.coinbase.com/v2/prices/spot?currency=USD


I have also used the coin desk but the prices are not accurate.

https://api.coindesk.com/v1/bpi/historical/close.json?start=2019-08-10&end=2020-08-11&currency=zar

Apr 5, 2022 in Blockchain by Aditya
• 7,680 points
1,915 views

1 answer to this question.