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

user strategies sample query #5

Open
ashachaf opened this issue Jul 12, 2023 · 1 comment
Open

user strategies sample query #5

ashachaf opened this issue Jul 12, 2023 · 1 comment

Comments

@ashachaf
Copy link

this query will expose the ability to fetch all strategies under a specific wallet.

@tiagofilipenunes
Copy link

tiagofilipenunes commented Jan 26, 2024

Sample query:

query ($owner: String!) {
  strategies(
    skip: 0
    first: 1000
    block: {number: 19082790}
    where: {owner: $owner}
  ) {
    id
    owner {
      id
    },
    token0 {
      id,
      name,
      symbol,
      decimals
    },
    token1 {
      id,
      name,
      symbol,
      decimals
    },
    order0 {
      inputToken {
        name
      },
      outputToken {
        name
      },
      y,
      z,
      A,
      B
    },
    order1 {
      inputToken {
        name
      },
      outputToken {
        name
      },
      y,
      z,
      A,
      B
    }
  }
}

Variable example:

{
  "owner": "0x6EeBf1cD062Ab5640F2e8Afc163027E5034aB531"
}

Direct link

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

2 participants