query swap($id: ID!, $block: Block_height){
    swap(id: $id, block: $block){
        id
        transaction{
            id
            blockNumber
            timestamp
        }
        timestamp
        pair{
            id
            reserve0
            reserve1
            totalSupply
            reserveETH
            reserveUSD
            trackedReserveETH
            token0Price
            token1Price
            volumeToken0
            volumeToken1
            volumeUSD
            untrackedVolumeUSD
            txCount
            createdAtTimestamp
            createdAtBlockNumber
            liquidityProviderCount
        }
        sender
        from
        amount0In
        amount1In
        amount0Out
        amount1Out
        to
        logIndex
        amountUSD
    }
}