Ameobea / robintrack

Scrapes the Robinhood API to retrieve + store popularity and price data.
https://robintrack.net
MIT License
686 stars 193 forks source link

Add support for sending partial data in timeseries #73

Closed Ameobea closed 4 years ago

Ameobea commented 4 years ago

A parameter should be added to the popularity history and quote history endpoints that, when provided, only sends one data point per day for data from over one year ago. The parameter can be called partialOldData or something like that.

Assuming the current date is June 12 2020 and the flag parameter is set, then the returned timeseries should be filtered to remove all but one update from each day before June 12 2019. The first data point from each day can be picked, discarding the rest.

The keys used in caching should be updated to reflect this new parameter.