Skip to content

bug: cannot query all time vault data #7

Description

@tommyrharper

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions