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 in Blockchain by Aditya
• 7,660 points
360 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 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 in Blockchain by Aditya
• 7,660 points
980 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,720 points
318 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,720 points
574 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 in Blockchain by Soham
• 9,670 points
888 views
0 votes
1 answer

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

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,440 points
728 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,108 views
0 votes
1 answer
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 in Blockchain by Rahul
• 9,680 points
235 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