duality-labs / hapi-indexer

A Node.js based indexer for the Duality Cosmos chain
1 stars 0 forks source link

Indexer: stats over time #3

Closed dib542 closed 1 year ago

dib542 commented 1 year ago

Required

Solution

The endpoints should accept a date range as they currently do, but also a resolution option which is dynamically restricted to a certain minimum and maximum resolutions for the given date range. Eg. the maximum resolution should show ~500 points and the minimum resolution should show ~10 points

The web app should also restrict the resolution requested by dynamically enforcing minimum and maximum resolutions for the visible date range. This should keep data volumes low and also communicate the data resolution better to the end user.