ohlc of pair add dex

Returns the latest 500 DEX trades by token on Solana, where currency mint address is BzcYdK…YW85, side currency mint address is So1111…1112 and block time since 2025-09-11: block time, trade price, currency mint address, protocol name, protocol family, program address, market address and count.

By Divyasshree · saved 12 September 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: combined) {
    DEXTradeByTokens(
      limit: {count: 500}
      where: {Transaction: {Result: {Success: true}}, Trade: {Currency: {MintAddress: {is: "BzcYdKm1ZJmzL4nD9cMAWr1DEbuuoDdjNMGLLcYHYW85"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Block: {Time: {since: "2025-09-11T12:00:00Z", before: "2025-09-11T13:00:00Z"}}}
      orderBy: {descendingByField: "Block_Timefield"}
    ) {
      Block {
        Timefield: Time(interval: {in: hours, count: 1})
      }
      Trade {
        price_in_sol_open: Price(minimum: Block_Slot)
        price_in_sol_close: Price(maximum: Block_Slot)
        Currency {
          MintAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Market {
          MarketAddress
        }
      }
      count
    }
  }
}

Similar queries