Get Product Candles

Hello, I’m trying to use Get Product Candles to retrieve historical price for ETH-USDT, however the results are empty with status 200. What’s the date range of available historical prices of ETH-USDT? I couldn’t find it anywhere in docs. Could you please help? Thanks.


query params:
granularity = 60
start = 1619500859000
end = 1619500919000

Note: start time is ‘2021-04-27T05:20:59.000Z’, and end time is start time + 2 minutes. I expect to see data, but the result is empty without error.

Hey, man :sunglasses:
I have inspected our request. Unfortunately, you took not existed range of date.
Based on Coinbase, Chart:

Based on TradingView, Chart:

How, you can see the start is 2021 May, 04.

Request exmaple:

Query params:
productId: ETH-USDT
start: 1620108000 (GMT : Tuesday, May 4, 2021 6:00:00 AM)
end: 1620108120 (GMT : Tuesday, May 4, 2021 6:02:00 AM)
granularity: 60



Thank you for the quick response! Is there a way to programmingly find out the range of available data for a trading pair (in this case, May 4 2021 for ETH-USDT)? Do I have to look at the charts for each pair? Thanks.

:rofl: hahaha
very interesting question, man
I even don’t know :slightly_frowning_face:
You should create some script which can GET data by chunk (if empty go next data range)
Additionally, you will start from ancient data to new ones - I will do like this )
If you have another option, write me about it )