query pairs($block: Block_height, $where: Pair_filter, $orderBy: Pair_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int){
    pairs(block: $block, where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
        id
        type
        swapFee
        twapEnabled
        name
        token0{
            id
            symbol
            symbolSuccess
            name
            nameSuccess
            decimals
            decimalsSuccess
            liquidity
            liquidityNative
            liquidityUSD
            volume
            volumeNative
            volumeUSD
            feesNative
            feesUSD
            txCount
            pairCount
            whitelistedPairCount
        }
        token1{
            id
            symbol
            symbolSuccess
            name
            nameSuccess
            decimals
            decimalsSuccess
            liquidity
            liquidityNative
            liquidityUSD
            volume
            volumeNative
            volumeUSD
            feesNative
            feesUSD
            txCount
            pairCount
            whitelistedPairCount
        }
        source
        createdAtBlock
        createdAtTimestamp
        reserve0
        reserve1
        liquidity
        liquidityUSD
        liquidityNative
        trackedLiquidityNative
        token0Price
        token1Price
        volumeNative
        volumeUSD
        volumeToken0
        volumeToken1
        feesNative
        feesUSD
        apr
        aprUpdatedAtTimestamp
        txCount
        liquidityPositions{
            id
            balance
            createdAtBlock
            createdAtTimestamp
        }
        liquidityPositionSnapshots{
            id
            timestamp
            block
            token0PriceUSD
            token1PriceUSD
            reserve0
            reserve1
            reserveUSD
            liquidityTokenTotalSupply
            liquidityTokenBalance
        }
        hourSnapshots{
            id
            date
            cumulativeVolumeUSD
            volumeUSD
            volumeNative
            volumeToken0
            volumeToken1
            liquidity
            liquidityNative
            liquidityUSD
            feesNative
            feesUSD
            apr
            transactionCount
        }
        daySnapshots{
            id
            date
            cumulativeVolumeUSD
            volumeUSD
            volumeNative
            volumeToken0
            volumeToken1
            liquidity
            liquidityNative
            liquidityUSD
            feesNative
            feesUSD
            apr
            transactionCount
        }
    }
}