Solana Historical Price

Returns DEX trades by token on Solana, where currency mint address is So1111…1112, side currency mint address is EPjFWd…Dt1v and block time since 2025-02-12, sorted by block time: trade price, block time, sum of trade amount and count.

By Joao Pansani · saved 25 April 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query {
  Solana(dataset: archive) {
    DEXTradeByTokens(
      orderBy: { ascending: Block_Time }
      where: {
        Block: {
          Time: {
            since: "2025-02-12T23:58:59Z",
            till: "2025-02-12T23:59:59Z"
          }
        },
        Trade: {
          Currency: { MintAddress: { is: "So11111111111111111111111111111111111111112" } }
          Side: { Currency: { MintAddress: { is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" } } }
          PriceAsymmetry: { lt: 0.1 }
        }
      }
    ) {
      Trade {
        open: Price(minimum: Block_Slot)
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        close: Price(maximum: Block_Slot)
      }
      Block {
        Time
      }
      volume: sum(of: Trade_Amount)
      count
    }
  }
}

Similar queries