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
For the Token/RAM price charts (e.g. on the homepage) we offer a dropdown to select a range between 1 day, 7 day, and 30 day. The data source it pulls from though is always the 7d, so the 30d chart doesn't display any additional data.
This is happening because the API wrappers we've setup are hardcoded to the 7d value:
Additional timeframes are available on that endpoint, such as:
marketprice/ram/1h/30d or marketprice/ram/1d/30d
I'm not sure which will display best, but we have some options there.
I think we need to either update this endpoint to accept different timeframe ranges, or create new endpoints specifically for the timeframe ranges we need. Then the chart elements themselves may need updates to fetch this new data properly.
The text was updated successfully, but these errors were encountered:
For the Token/RAM price charts (e.g. on the homepage) we offer a dropdown to select a range between 1 day, 7 day, and 30 day. The data source it pulls from though is always the 7d, so the 30d chart doesn't display any additional data.
This is happening because the API wrappers we've setup are hardcoded to the 7d value:
unicove/src/routes/[network]/api/metrics/marketprice/ram/+server.ts
Line 16 in 5f83e6a
unicove/src/routes/[network]/api/metrics/marketprice/token/+server.ts
Line 18 in 5f83e6a
Additional timeframes are available on that endpoint, such as:
marketprice/ram/1h/30d
ormarketprice/ram/1d/30d
I'm not sure which will display best, but we have some options there.
I think we need to either update this endpoint to accept different timeframe ranges, or create new endpoints specifically for the timeframe ranges we need. Then the chart elements themselves may need updates to fetch this new data properly.
The text was updated successfully, but these errors were encountered: