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

bug: cannot query all time vault data #7

Open
tommyrharper opened this issue Apr 12, 2023 · 0 comments
Open

bug: cannot query all time vault data #7

tommyrharper opened this issue Apr 12, 2023 · 0 comments

Comments

@tommyrharper
Copy link

tommyrharper commented Apr 12, 2023

On this page for the vault data options 1M, 3M and 6M all work but ALL never loads:
image

The following request is failing:
Request URL: https://api.lyra.finance/subgraph/arbitrum/v2/api

query marketVolumeAndFeesSnapshots($market: String!, $min: Int!, $max: Int!, $period: Int!) {
  marketVolumeAndFeesSnapshots(
    first: 1000
    orderBy: timestamp
    orderDirection: asc
    where: {market: $market, timestamp_gte: $min, timestamp_lte: $max, period: $period}
  ) {
    id
    timestamp
    period
    premiumVolume
    notionalVolume
    totalPremiumVolume
    totalNotionalVolume
    spotPriceFees
    optionPriceFees
    vegaFees
    varianceFees
    deltaCutoffFees
    liquidatorFees
    smLiquidationFees
    lpLiquidationFees
    totalShortPutOpenInterestUSD
    totalShortCallOpenInterestUSD
    __typename
  }
}

This is an example of the args:

{
  "market": "0xe044919cf58dfb066fc9de7c69c7db19f336b20c",
  "min": -2.7669999599456787,
  "max": 1681328296,
  "period": 86400
}

And the response is:

{"errors":[{"locations":[{"column":51,"line":1}],"message":"Invalid value provided for argument `min`: Float(-2.7669999599456787)"}]}

Each time the response error is along these lines:

Invalid value provided for argument `min`: Float(-2.7669999599456787)
@tommyrharper tommyrharper changed the title bug: cannot query vault all time data bug: cannot query all time vault data Apr 12, 2023
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

No branches or pull requests

1 participant