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

Endpoints for use in main and archive api #3

Merged
merged 2 commits into from
May 21, 2024

Conversation

ReflectiveChimp
Copy link
Collaborator

@ReflectiveChimp ReflectiveChimp commented May 17, 2024

For beefyfinance/beefy-api#1449 and beefyfinance/beefy-db-dev#21

image

/api/v1/vaults/arbitrum/1d

[
  {
    "vaultAddress": "0x2a2e016f9c30c7da5a41b21c19e9619ff78ab673",
    "priceOfToken0InToken1": "1539942019164776",
    "priceRangeMin1": "1083391779172686",
    "priceRangeMax1": "2225675930836584",
    "apr": "0.69408868859998648110827094174299227542471839386296",
    "apy": "1.0016637728727564031556409516498065575405907616022"
  },
  {
    "vaultAddress": "0x4c32b8d26e6ab2ce401772514c999768f63afb4e",
    "priceOfToken0InToken1": "0",
    "priceRangeMin1": "0",
    "priceRangeMax1": "0",
    "apr": "0.2011205867623853450666395219728902779402901291007",
    "apy": "0.2227496313402178038180414451329320081296835424214"
  },
  // ...
]

/api/v1/vault/arbitrum/0xe3EAc56810C885067dC4C43A8049A07D9Bb127a4/prices/range/1h

{
  "min": 1715252400,
  "max": 1716217200
}

/api/v1/vault/arbitrum/0xe3EAc56810C885067dC4C43A8049A07D9Bb127a4/prices/1h/1715252400

[
  {
    "t": 1715252400,
    "min": "17392838159021",
    "v": "25096120362118",
    "max": "35731138082873"
  },
  {
    "t": 1715256000,
    "min": "17392838159021",
    "v": "25096120362118",
    "max": "35731138082873"
  },
   // ...
]

@ReflectiveChimp ReflectiveChimp changed the title /vaults/:chain/:period endpoint for use in main api Endpoints for use in main and archive api May 20, 2024
@seguido seguido merged commit 4dddaec into beefyfinance:main May 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants