Token Trades

Returns DEX trades on Arbitrum, where DEX protocol name is uniswap_v2, block date since 2023-08-03 and block date till 2023-08-10, sorted by block date: chain ID, block date and count.

By Nadia · saved 10 August 2023 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $from: String, $till: String, $protocol: String!) {
  EVM(dataset: archive, network: $network) {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {is: $protocol}}, Buy: {Currency: {Fungible: false}}}, Block: {Date: {since: $from, till: $till}}}
      orderBy: {ascending: Block_Date}
    ) {
      ChainId
      Block {
        Date
      }
      count
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "arbitrum",
  "protocol": "uniswap_v2",
  "from": "2023-08-03",
  "till": "2023-08-10"
}

Similar queries