QueryForHistoryPrice

Returns the latest DEX trades by token on Solana, where currency mint address is 5dJPdG…pump, side currency mint address is So1111…1112 or 111111…1111 and trade price asymmetry is below 0.1: block time, sum of trade amount, trade price, side currency mint address and count.

By guyasong · saved 2 September 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($ca: String!, $currencies: [String!]) {
  Solana(dataset: archive) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: $ca}}, Side: {Currency: {MintAddress: {in: $currencies}}}, PriceAsymmetry: {lt: 0.1}}}
    ) {
      Block {
        Timefield: Time(interval: {in: hours, count: 1})
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
        Side {
          Currency {
            MintAddress
          }
        }
      }
      count
    }
  }
}

Variables

{"ca":"5dJPdG6QTwfSeEKAFfJttVdfyQXwQVD2HNLnC3Cgpump","currencies": ["So11111111111111111111111111111111111111112","11111111111111111111111111111111"]}

Similar queries