OHLCV

Returns the latest DEX trades by token on Solana, where currency mint address is fCRm2z…pump, side currency mint address is So1111…1112 and block time since 2025-01-01: block time, protocol name, price in USD, sum of trade amount and count.

By br · saved 27 February 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: archive, aggregates: yes) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "fCRm2z7npfXHMSc2LBL5garDDCAzmazYq5o6k9Tpump"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Block: {Time: {since: "2025-01-01T15:06:00Z", till: "2025-01-01T15:21:00Z"}}}
      orderBy: {descendingByField: "Block_Time"}
    ) {
      Block {
        Time(interval: {in: minutes, count: 1})
      }
      Trade {
        Dex {
          ProtocolName
        }
        open: PriceInUSD(minimum: Block_Time)
        close: PriceInUSD(maximum: Block_Time)
        high: PriceInUSD(maximum: Trade_Price)
        low: PriceInUSD(minimum: Trade_Price)
      }
      volume: sum(of: Trade_Amount)
      trade_count: count
    }
  }
}

Similar queries