danpaquin / coinbasepro-python

The unofficial Python client for the Coinbase Pro API
MIT License
1.82k stars 740 forks source link

Retrieve high, low close price over last hour #456

Open danielvh8 opened 2 years ago

danielvh8 commented 2 years ago

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?

smbrandonjr commented 2 years ago

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.