Latest Trades of Token in Network_dextrades

Returns the latest 10 DEX trades by token on Arbitrum, where currency smart contract is 0xfd08…cbb9, block date since 2024-01-20 and block date till 2024-01-29: chain ID, block number, block time, seller, buyer, trade amount, smart contract and 8 more fields.

By Nadia · saved 29 January 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $token: String!, $from: String!, $till: String!) {
  EVM(network: $network, dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Number}
      limit: {count: $limit}
      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
      }
    }
  }
}

Variables

{
  "network": "arbitrum",
  "from": "2024-01-20",
  "till": "2024-01-29",
  "limit": 10,
  "offset": 0,
  "token": "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"
}

Similar queries