query swap($id: ID!, $block: Block_height){
    swap(id: $id, block: $block){
        id
        transaction{
            id
            gasLimit
            gasPrice
            createdAtBlock
            createdAtTimestamp
        }
        timestamp
        pair{
            id
            type
            swapFee
            twapEnabled
            name
            source
            createdAtBlock
            createdAtTimestamp
            reserve0
            reserve1
            liquidity
            liquidityUSD
            liquidityNative
            trackedLiquidityNative
            token0Price
            token1Price
            volumeNative
            volumeUSD
            volumeToken0
            volumeToken1
            feesNative
            feesUSD
            apr
            aprUpdatedAtTimestamp
            txCount
        }
        sender
        tokenIn{
            id
            symbol
            symbolSuccess
            name
            nameSuccess
            decimals
            decimalsSuccess
            liquidity
            liquidityNative
            liquidityUSD
            volume
            volumeNative
            volumeUSD
            feesNative
            feesUSD
            txCount
            pairCount
            whitelistedPairCount
        }
        tokenOut{
            id
            symbol
            symbolSuccess
            name
            nameSuccess
            decimals
            decimalsSuccess
            liquidity
            liquidityNative
            liquidityUSD
            volume
            volumeNative
            volumeUSD
            feesNative
            feesUSD
            txCount
            pairCount
            whitelistedPairCount
        }
        amountIn
        amountOut
        to
        logIndex
        amountUSD
    }
}