token 1 sec candle

Returns the latest 50 DEX trades by token on Base, where currency smart contract is 0x5533…0367, side currency smart contract is 0x, 0x4200…0006 or 2 more and block time since 2025-10-13: block time, transaction hash, smart contract, protocol family, protocol name, amount in USD, buyer and 11 more fields.

By gaurav · saved 14 October 2025 · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($network: evm_network, $time_ago: DateTime, $token: String, $eth: String!, $weth: String!, $usdc: String!, $usdt: String!) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {TransactionStatus: {Success: true}, Trade: {Side: {Currency: {SmartContract: {in: [$eth, $weth, $usdc, $usdt]}}}, Currency: {SmartContract: {is: $token}}, Success: true}, Block: {Time: {since: $time_ago}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          SmartContract
          ProtocolFamily
          ProtocolName
        }
        AmountInUSD
        Buyer
        Seller
        Side {
          Type
          Buyer
          Seller
        }
        PriceInUSD
        Amount
        Side {
          Currency {
            Symbol
            SmartContract
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "network": "base",
  "token": "0x55337650856299363c496065c836b9c6e9de0367",
  "eth": "0x",
  "usdc": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "usdt": "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2",
  "weth": "0x4200000000000000000000000000000000000006",
  "dataset": "realtime",
  "time_ago": "2025-10-13T12:18:05Z"
}

Similar queries