currencybot / open-exchange-rates

Open Exchange Rates API - free / open source hourly-updated currency data for everybody
http://josscrowcroft.github.com/open-exchange-rates/
190 stars 19 forks source link

aggregate data weekly #14

Open memoooo opened 12 years ago

memoooo commented 12 years ago

Hi,

A convenient feature would be to allow to make queries like that :

/lastweek.json so that we could fetch current week values in a single query rather than making multiple queries for each day.

Or, maybe, (would allow to do everything actually), allow queries like that : /historical/data.json?from=2011-11-21&to=2011-12-10

And you set a serverside maxrange (31 days looks good) to save your server from spam.

That kind of query allows us to draw charts with historical data overtime in a single jsonP query

Thanks