bcwik9 / robinhood-on-rails

A web dashboard for the free trading platform Robinhood using Ruby on Rails and a private API
MIT License
151 stars 53 forks source link

Question: Auto-refresh rate? #2

Closed drew-wallace closed 7 years ago

drew-wallace commented 7 years ago

I'm also making a Robinhood client (for Windows 10), and ran into an api call limit while testing. What refresh rate do you use when auto refreshing? I want to avoid the call limit so the user doesn't run into any issues with normal use.

bcwik9 commented 7 years ago

the portfolio portion refreshes every 15 seconds and the positions/watchlist refresh every 20 seconds. however each of those sections makes various calls to the API (for quotes, account information, etc), so it's not exactly a single call to the API. Those calls are unthrottled.

drew-wallace commented 7 years ago

Are you requesting historical data within those calls at all?

bcwik9 commented 7 years ago

I request historical data for portfolio history every 5 minutes, since that's the update timeframe (the interval for the span of a day is 5 minutes)

drew-wallace commented 7 years ago

Gotcha. Thanks!