Solana candles query

Query Solana Candles for a Time Range (with percentile filtering)

Returns DEX trades by token on Solana, where side currency mint address is So1111…1112, EPjFWd…Dt1v or 1 more and side amount in USD is at least 1, sorted by block slot: block time, slot, trade amount, trade price, price in USD, currency name, currency symbol and 10 more fields.

By YP · saved 27 June 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query {
  Solana {
    DEXTradeByTokens(
      orderBy: {ascending: Block_Slot}
      where: {Trade: {Side: {Currency: {MintAddress: {in: ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"]}}, AmountInUSD: {ge: "1"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Time
        Slot
      }
      Trade {
        Amount
        Price
        PriceInUSD
        Currency {
          Name
          Symbol
          MintAddress
        }
        Side {
          Currency {
            Name
            Symbol
            MintAddress
          }
          Amount
          AmountInUSD
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
        Market {
          MarketAddress
        }
      }
      Transaction {
        Signature
      }
    }
  }
}

Similar queries