Access specific date

trades api Get product trades
says that we should paginate by ID (before/after). however, it’s very inconvenient. For example, I want to get trades which happened around at 2021-November-14 15:00:00
How can I do that?
All exchanges’ APIs I have ever seen, have parameter something like “startTime” which allows us to input specific date in parameters, so we get items/date from that time (instead of “from that ID”).

Please help us to solve that.

Hi @ttodua! Thank you for the continued support of using Coinbase API.

Get product trades is only for the latest trades for a product.

You may try using the Candles endpoint to get historic rates for a product, that endpoint allows a query parameter with a start timestamp.

If this does not solve the issue, please let us know. Thank you!

1 Like