You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current code does a crappy job picking the correct current_price value between last_trade_price or last_extended_hours_trade_price.
Also, the current method requires the code to hit /markets and /market/[NAME]/hours/[DATE] every time a quote is requested. Each request can take ~1s, and we already need 3 to make quotes from Robinhood.
Improve price picking method (and testability)
Add a tinydb, tinymongo or sqlite inline DB for caching today, and throwing away yesterday
Enumerate market status (open, after hours, closed, holiday)
The text was updated successfully, but these errors were encountered:
Current code does a crappy job picking the correct
current_price
value betweenlast_trade_price
orlast_extended_hours_trade_price
.Also, the current method requires the code to hit
/markets
and/market/[NAME]/hours/[DATE]
every time a quote is requested. Each request can take ~1s, and we already need 3 to make quotes from Robinhood.tinydb
,tinymongo
orsqlite
inline DB for caching today, and throwing away yesterdayThe text was updated successfully, but these errors were encountered: