Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: vault tvl history #18

Open
murderteeth opened this issue Jul 7, 2023 · 0 comments
Open

feat: vault tvl history #18

murderteeth opened this issue Jul 7, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@murderteeth
Copy link

Seafood is currently fetching 3-week TVL history for every vault on each network by posting promql to https://yearn.vision/api/ds/query. This has been OK, but may prove fragile long term (eg because of feature\design drift on the exporter side, promql is a relatively uncommon skill, etc).

Can TVL history be added to the high level api? Suggesting something like this:

/tvl/[network]/vaults?frequency=weekly&periods=3

Fwiw, here's the promql seafood uses, https://github.com/yearn/seafood/blob/main/api/routes/vision/tvls.json

@0xBasically 0xBasically added enhancement New feature or request good first issue Good for newcomers labels Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants