openbook v2

Returns the latest 10 DEX orders on Solana, where DEX program address is opnb2L…hpZb: protocol name, program address, order event index, market address, quote currency name, quote currency symbol, quote currency mint address and 7 more fields.

By Divyasshree · saved 5 May 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: realtime) {
    DEXOrders(
      where: {OrderEvent: {Dex: {ProgramAddress: {is: "opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb"}}}}
      orderBy: {descending: Block_Time}
      limit: {count: 10}
    ) {
      OrderEvent {
        Dex {
          ProtocolName
          ProgramAddress
        }
        Index
        Market {
          MarketAddress
          QuoteCurrency {
            Name
            Symbol
            MintAddress
          }
          BaseCurrency {
            Name
            MintAddress
          }
        }
        Order {
          Account
          BuySide
          LimitPrice
          LimitAmount
          OrderId
        }
      }
    }
  }
}

Similar queries