Coinbase API v2 Getting Historic Price for Multiple Days

0 votes

I'm having some trouble with a API call for historical data.

Previously, I was getting a variable length of days that would match the amount of space available on a terminal screen with a request URL that looked like this:

This would pull the previous 76 days of price history. An example of the old output is here:

This stopped working a few days ago. The closest I can get to this is with this request URL:

The output from this can be seen here:

In the second example, it is just displaying prices from the day of the query at different times of that day. What I really want is the first example output where it gives a single price per day going back as many days as the request is for.

The project this is connected to is here:

Links that do not work: (No Results) (Does not pull data from 7/15/2018)

Apr 6, 2022 in Blockchain by Rahul
• 9,680 points

1 answer to this question.

0 votes

Any reason you aren't using coinbase pro?

The new API is very easy to use. Simply add the get command you want to be followed by the parameters separated with a question mark. Here is the new historic rates API documentation:

The get command with the new API most similar to prices is "candles". It requires three parameters to be identified, start and stop time in iso format and granularity which is in seconds. Here is an example:

Check out Blockchain course to learn more about blockchain technology.

answered Apr 12, 2022 by Soham
• 9,700 points

Related Questions In Blockchain

0 votes
1 answer

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

I would recommend you to use the ...READ MORE

answered Apr 7, 2022 in Blockchain by Rahul
• 9,680 points
0 votes
1 answer

How do I add multiple recipients for transactions via Blockchain API?

Convert the recipes into JSON objects. x = ...READ MORE

answered Jul 6, 2018 in Blockchain by Perry
• 17,100 points
0 votes
2 answers

how to integrate coinbase api in php for transfer bitcoine

Here the code for php please have ...READ MORE

answered Sep 17, 2018 in Blockchain by Suresh
0 votes
1 answer

Web3j Transfer.sendFunds() returns Error “insufficient funds for gas * price + value”

DISCLAIMER. This may not necessarily be an answer to your ...READ MORE

answered Jun 16, 2018 in Blockchain by charlie_brown
• 7,720 points
+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,450 points
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
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
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,700 points
0 votes
1 answer

Bitcoin Price that updates in specific Seconds

The better way to do so is ...READ MORE

answered Feb 28, 2022 in Blockchain by Soham
• 9,700 points
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP