IndividualTradesTest

Can DEXTradeByTokens return individual Solana trades on combined or archive? Is there a way to query DEXTradeByTokens on combined/archive that returns one row per trade (not aggregated)?

By Robert · saved 12 March 2026 · Bitquery API v2

What it returns

Filters

The query

query IndividualTradesTest($token: String!) {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Currency: {MintAddress: {is: $token}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}, Price: {gt: 0}}, Transaction: {Result: {Success: true}}, Block: {Time: {since: "2026-03-09T23:00:00Z", till: "2026-03-09T23:59:59Z"}}}
    ) {
      Block {
        allTime: Time
      }
      Transaction {
        Signature
      }
      Trade {
        Account {
          Owner
        }
        Price
        PriceInUSD
        Amount
        Side {
          Type
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
      }
    }
  }
}

Variables

{ "token": "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4" }

Similar queries