K2DhBqHBXEjBMwXm

RPC Websocket / Geyser Plugin

Returns 20 DEX trades by token on Tron, where block time after 2026-01-25, sorted by USD, highest first: block time, currency symbol, currency name, smart contract, native, side currency symbol, side currency name and 5 more fields.

By WEB3_PROVIDER_URI · saved 26 January 2026 · Bitquery API v2

What it returns

Filters

The query

query ($min_count: String!, $time_1h_ago: DateTime!, $time_ago: DateTime!, $wtrx: String!, $usdt: String!) {
  Tron {
    DEXTradeByTokens(
      where: {Transaction: {Result: {Success: true}}, Block: {Time: {after: $time_ago}}, any: [{Trade: {Side: {Currency: {SmartContract: {is: $usdt}}}, Currency: {Native: false}}}, {Trade: {Side: {Currency: {SmartContract: {is: $wtrx}}}, Currency: {Native: false, SmartContract: {not: $usdt}}}}, {Trade: {Side: {Currency: {Native: true}}, Currency: {Native: false, SmartContract: {not: $usdt}}}}, {Trade: {Side: {Currency: {Native: false, SmartContract: {notIn: [$usdt, $wtrx]}}}, Currency: {Native: false, SmartContract: {notIn: [$usdt, $wtrx]}}}}, {Trade: {Side: {Currency: {Native: true}}, Currency: {SmartContract: {in: [$usdt, $wtrx]}}}}]}
      orderBy: {descendingByField: "usd"}
      limit: {count: 20}
    ) {
      Block {
        Time(maximum: Block_Time, selectWhere: {after: $time_1h_ago})
      }
      Trade {
        Currency {
          Symbol
          Name
          SmartContract
          Native
        }
        Side {
          Currency {
            Symbol
            Name
            SmartContract
            Native
          }
        }
        price_last: PriceInUSD(maximum: Block_Number)
        price_1h_ago: PriceInUSD(
          minimum: Block_Number
          if: {Block: {Time: {after: $time_1h_ago}}}
        )
      }
      usd: sum(of: Trade_Side_AmountInUSD)
      count(selectWhere: {ge: $min_count})
    }
  }
}

Variables

{
  "min_count": "10",
  "time_1h_ago": "2026-01-26T13:10:27Z",
  "time_ago": "2026-01-25T14:10:27Z",
  "usdt": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
  "wtrx": "TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR"
}

Similar queries