CannotFindOldAddress

Returns 300 DEX trades by token on Solana, where side currency mint address is So1111…1112 or 111111…1111, currency mint address is not So1111…1112 or 111111…1111 and block time since 2025-08-25, sorted by total traded volume, highest first: currency name, currency mint address, currency symbol, price in USD, side currency symbol, side currency name, side currency mint address and 2 more fields.

By guyasong · saved 26 August 2025 · Bitquery API v2

What it returns

Filters

The query

query LastPeriodTradeVolume($currencies: [String!], $sides: [String!], $block_time: DateTime) {
  Solana(dataset: realtime) {
    DEXTradeByTokens(
      where: {Transaction: {Result: {Success: true}}, Trade: {Side: {Currency: {MintAddress: {in: $sides}}, AmountInUSD: {gt: "10"}}, Currency: {MintAddress: {notIn: $currencies}}}, Block: {Time: {since: $block_time}}}
      orderBy: {descendingByField: "total_traded_volume"}
      limit: {count: 300}
    ) {
      Trade {
        Currency {
          Name
          MintAddress
          Symbol
        }
        start: PriceInUSD(minimum: Block_Time)
        min5: PriceInUSD(minimum: Block_Time, if: {Block: {Time: {after: $block_time}}})
        end: PriceInUSD(maximum: Block_Time)
        Side {
          Currency {
            Symbol
            Name
            MintAddress
          }
        }
      }
      makers: count(distinct: Transaction_Signer)
      total_trades: count
      total_traded_volume: sum(of: Trade_Side_AmountInUSD)
      total_buy_volume: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: buy}}}}
      )
      total_sell_volume: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      total_buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      total_sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Variables

{"currencies": ["So11111111111111111111111111111111111111112","11111111111111111111111111111111"], "sides": ["So11111111111111111111111111111111111111112","11111111111111111111111111111111"],"block_time":"2025-08-25T11:17:07Z"}

Similar queries