pstoica / pow-viz

MIT License
2 stars 1 forks source link

Price/Trends Endpoint Formats #10

Closed vis-123 closed 10 years ago

vis-123 commented 10 years ago

So, an individual object in res.prices is gonna be like: { _id: MonthlyDateObj, value: { low_avg: lowPrice, mid_avg: mid, high_avg: high, } } and for res.trends its like : { date: MonthlyDateObj, val: trendValue }

and MonthlyDateObj is just a date object where only the month and year have any real significance. The day value is always set to 1 since we're doing it by month.