yearn / yearn-api-archived

Collection of serverless API
23 stars 24 forks source link

Store daily TVL and expose it on TVL endpoint #58

Open miguel567 opened 3 years ago

miguel567 commented 3 years ago

Create a new /tvl/save endpoint to store daily tvl. the key for DB can be the timestamp.

On /tvl endpoint then extend the json output for include the daily TVl. Keeping as the TvlUSD the current (latest) TVL. Don't change the TvlUSD as this is already integrated in Defillama and changes could break their integration.