Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product historic data range #91

Closed
Algogator opened this issue Jul 18, 2017 · 1 comment
Closed

Product historic data range #91

Algogator opened this issue Jul 18, 2017 · 1 comment

Comments

@Algogator
Copy link

Algogator commented Jul 18, 2017

Running

hist = publicClient.get_product_historic_rates(
            'BTC-EUR',
            start='2015-07-18T14:41:12.809362',
            end='2017-07-18T14:41:12.809362',
            granularity=60)

print(hist[0][0],hist[-1][0])

1500369540 1500345720
which is 2017-07-18T14:49:00 2017-07-18T08:12:00
Shouldn't the bucket start from 2015?

@mabounassif
Copy link

mabounassif commented Jul 18, 2017

Maybe not relevant. Keep in mind that the request has a limit of 200 candles. So you are requesting 2 years of data for a granularity of 60 seconds. That's well beyond 200 candles. That's why you may have just a cropped out bucket.

GDAX historic rate docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants