Comment on page
For situations where the fetch function can only return
totalVolumeand can return in based on a timestamp you can use the
customBackfillfunction that can be found in
If the data is available in a subgraph and it follows a structure similar to uniswap, you can use the folling helper functions to easily query it. More docs about it to be added soon but for now... take a look at other implementations!
Some data sources are only able to return data given a 00:00:00 day timestamp. In that case you can use the function
startOfTodayTimestampto get the timestamp of the specific day. For example passing
1663718399 (2022-09-20T23:59:59.000Z)timestamp will return