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,345 views

1 answer to this question.

0 votes

I would recommend you to use the CoinMarketCap API if what you want are historical prices.

There are also libraries like ccxt where you can probably find this information as well.

However, you have to keep in mind that due to the number of exchanges these prices are approximations, and there is no such a thing as a "unique" price for bitcoin.

answered Apr 7, 2022 by Rahul
• 9,680 points

Related Questions In Blockchain

0 votes
1 answer

How to get price from bitcoin to USD with api

If I'm not wrong, is this what ...READ MORE

answered Apr 7, 2022 in Blockchain by Aditya
• 7,680 points
2,874 views
0 votes
1 answer

How to get property of non object in Coinbase API

First, your sendMoney() call is stored into ...READ MORE

answered Aug 31, 2018 in Blockchain by digger
• 26,740 points
756 views
0 votes
1 answer

How to get genesis block value at new bitcoin source?

chainparams.cpp contains a line of code that ...READ MORE

answered Sep 4, 2018 in Blockchain by digger
• 26,740 points
968 views
0 votes
1 answer

How To Get BTC Price on Binance from Binance API

In the Script environment for Apps, the ...READ MORE

answered Feb 28, 2022 in Blockchain by Soham
• 9,710 points
2,395 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,427 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,923 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
0 votes
1 answer
0 votes
1 answer

How to set fee in raw bitcoin transaction using btcutil

To answer your question, the settxfee is ...READ MORE

answered Mar 24, 2022 in Blockchain by Rahul
• 9,680 points
926 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP