wavebot ohlc ref

Returns DEX trades by token on Solana, where currency mint address is 27G8Mt…idD4, side currency mint address is So1111…1112 or 111111…1111 and block time after 2025-01-20, sorted by block timefield: block time, sum of trade amount and price in USD.

By Divyasshree · saved 3 February 2025 · Bitquery API v2

What it returns

Filters

The query

query {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Timefield"}
      where: {
        Trade: {
          Currency: {MintAddress: {is: "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4"}},
          Side: {Currency: {MintAddress: {in: ["So11111111111111111111111111111111111111112", "11111111111111111111111111111111"]}}}
        },
        Block: {Time: {after: "2025-01-20T00:00:00Z"}}
      }
    ) {
      Block {
        Timefield: Time(interval: {in: minutes, count: 1})
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: PriceInUSD(maximum: Trade_PriceInUSD)
        low: PriceInUSD(minimum: Trade_PriceInUSD)
        open: PriceInUSD(minimum: Block_Slot)
        close: PriceInUSD(maximum: Block_Slot)
      }
    }
  }
}

Similar queries