ERC20 token trades

Returns the latest DEX trades by token on Ethereum, where currency smart contract is 0x7A4f…7547, block date since 2024-02-01 and block date till 2024-02-14: chain ID, block number, block time, seller, buyer, trade amount, smart contract and 15 more fields.

By iam4x · saved 13 February 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $token: String, $from: String, $till: String) {
  EVM(network: $network, dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Number}
      where: {Trade: {Currency: {SmartContract: {is: $token}}}, Block: {Date: {since: $from, till: $till}}}
    ) {
      ChainId
      Block {
        Number
        Time
      }
      Trade {
        Seller
        Buyer
        Amount
        Currency {
          SmartContract
          Symbol
          Name
        }
        Price
        Side {
          Amount
          Currency {
            SmartContract
            Symbol
            Name
          }
        }
      }
      Transaction {
        Hash
        From
        GasPrice
        Cost
        Value
      }
      Receipt {
        GasUsed
        CumulativeGasUsed
        Status
      }
    }
  }
}

Variables

{
  "network": "eth",
  "from": "2024-02-01",
  "till": "2024-02-14",
  "offset": 0,
  "token": "0x7A4f956405838a1e6A42C71036310dB09C3a7547"
}

Similar queries