Get SOL mint historical prices

Returns DEX trades by token on Solana, where currency mint address is 6D7NaB…i5Ui, side currency mint address is So1111…1112 and block time since 2025-04-12: sum of trade amount, price in USD and count.

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

What it returns

Filters

The query

query OtherSolanaTokensPrice{
  Solana(dataset: archive) {
    DEXTradeByTokens(
      where: {
        Block: {
          Time: {
            since: "2025-04-12T00:00:00Z",
            till: "2025-04-12T23:59:59Z"
          }
        },
        Trade: {
          Currency: {
            MintAddress: { is: "6D7NaB2xsLd7cauWu1wKk6KBsJohJmP2qZH9GEfVi5Ui" }
          }
          Side: {
            Currency: {
              MintAddress: { is: "So11111111111111111111111111111111111111112" }
            }
          }
          PriceAsymmetry: { lt: 0.1 }
        }
      }
    ) {
      volume: sum(of: Trade_Amount)
      Trade {
        close: PriceInUSD(maximum: Block_Slot)
      }
      count
    }
  }
}

Similar queries