OpenBook V1 wrong dextrades

Returns the latest 10 DEX trades on Solana, where DEX protocol family is OpenBook: method, buy amount, buy account address, buy currency symbol, program address, protocol family, protocol name and 4 more fields.

By Akshat · saved 6 June 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTrades(
      limit:{count:10}
      orderBy:{descending:Block_Time}
      where: {Trade: {Dex: {ProtocolFamily: {is: "OpenBook"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Instruction {
        Program {
          Method
        }
      }
      Trade {
        Buy {
          Amount
          Account {
            Address
          }
          Currency {
            Symbol
          }
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Sell {
          Currency {
            Symbol
          }
          Account {
            Address
          }
          Price
        }
      }
      Transaction {
        Signature
      }
    }
  }
}

Similar queries