Token Trades

Returns the latest 1000 DEX trades on Ethereum, where block date since 2023-07-11 and block date till 2023-07-11: block time, block number, chain ID, buy currency symbol, buy smart contract, buy amount, sell currency symbol and 9 more fields.

By Nadia · saved 24 July 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $offset: Int!, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      limit: {count: $limit, offset: $offset}
      where: {Block: {Date: {since: $from, till: $till}}}
      orderBy: {descending: Block_Number}
    ) {
      Block {
        Time
        Number
      }
      ChainId
      Trade {
        Buy {
          Currency {
            Symbol
            SmartContract
          }
          Amount
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }
          Amount
        }
        Dex {
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          SmartContract
        }
      }
      Transaction {
        Hash
        Protected
        Index
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 1000,
  "offset": 0,
  "from": "2023-07-11",
  "till": "2023-07-11"
}

Similar queries