coinbasepro-python icon indicating copy to clipboard operation
coinbasepro-python copied to clipboard

Retrieve high, low close price over last hour

Open danielvh8 opened this issue 4 years ago • 1 comments

I'm looking to query the high, low and closing price for each hour. So far, the only way I see to accomplish this is by calling .get_product_historic_rates() every hour. However, it is discouraged by the documentation to poll the historic rates frequently. Can someone explain why that is and how I might continue?

danielvh8 avatar Aug 14 '21 10:08 danielvh8

Per the API doc the rate limit for public endpoints by IP is 10 requests per second, up to 15 requests per second in bursts. If you are getting the historical rates once an hour then I don't think that is an issue.

With that said, the alternative is to use the websocket feed.

smbrandonjr avatar Nov 26 '21 02:11 smbrandonjr