ApefaxTokenTrades

Returns the latest 200 DEX trades: block time, block number, transaction hash, from, buy buyer, buy seller, buy amount and 3 more fields.

By Kshitij Mahajan · saved 27 May 2026 · Bitquery API v2

What it returns

The query

query ApefaxTokenTrades($network: evm_network!, $contract: String!, $tokenId:
 String!) {
   EVM(network: $network) {
     Trades: DEXTrades(
       where: {
         Trade: { Buy: { Currency: { SmartContract: { is: $contract } Fungible: false} } }
         any: [
           { Trade: { Buy: { Ids: { includes: { eq: $tokenId } } } } }
           { Trade: { Sell: { Ids: { includes: { eq: $tokenId } } } } }
         ]
       }
       orderBy: { descending: Block_Time }
       limit: { count: 200 }
     ) {
       Block { Time Number }
       Transaction { Hash From }
       Trade { 
        Buy{ Buyer Seller Amount Currency { Symbol }}
        Dex { ProtocolName SmartContract } }
     }
   }
 }

Similar queries