For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sample Subgraph Queries

The following queries can be swapped into the query variable in the Subgraph Query in Python example to fetch the indicated data.

Strategies Sample Query

# The Graph query
query = """

{
  strategies(first: 10) {
    id
    order0 {
      A
      B
      y
      z
      inputToken {
        symbol
      }
      outputToken {
        symbol
      }
    }
    token0 {
      id
    }
    token1 {
      id
    }
    order1 {
      A
      B
      y
      z
      inputToken {
        symbol
      }
      outputToken {
        symbol
      }
    }
    owner {
        id
      }
  }
}
"""

Pairs Sample Query

Trades Sample Query

Last updated