HistoricalDEXTrades

Is the DEXTrades cube available for historical Solana queries? Can DEXTrades on Solana be used with dataset: combined or dataset: archive to pull individual historical trades with date filters?

By Robert · saved 12 March 2026 · Bitquery API v2

What it returns

Filters

The query

query HistoricalDEXTradesTest {
  Solana(dataset: combined) {
    DEXTrades(
      limit: {count: 50}
      orderBy: {descending: Block_Time}
      where: {
        Trade: {
          Buy: {
            Currency: {
              MintAddress: {is: "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4"}
            }
          }
        }
        Block: {
          Time: {since: "2026-03-09T23:00:00Z", till: "2026-03-09T23:59:59Z"}
        }
        Transaction: {Result: {Success: true}}
      }
    ) {
      Block { Time }
      Transaction { Signature Signer }
      Trade {
        Dex { ProgramAddress ProtocolFamily ProtocolName }
        Market { MarketAddress }
        Buy {
          Amount
          AmountInUSD
          Price
          PriceInUSD
          Account { Address }
          Currency { Name Symbol MintAddress }
        }
        Sell {
          Amount
          AmountInUSD
          Price
          PriceInUSD
          Account { Address }
          Currency { Name Symbol MintAddress }
        }
      }
    }
  }
}

Similar queries