Real-time-trades-on-OpenBook-DEX-on-Solana

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

By Kshitij Mahajan · saved 3 June 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query SolanaOpenBookDexTrades {
  Solana {
    DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Dex: {ProtocolFamily: {is: "OpenBook"}}}}
    ) {
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Currency {
            Name
            Symbol
            ProgramAddress
            MintAddress
          }
          Amount
          Account {
            Address
          }
          Price
          AmountInUSD
        }
        Sell {
          Account {
            Address
          }
          Amount
          Currency {
            Name
            Symbol
            ProgramAddress
            MintAddress
          }
          PriceAgainstSellCurrency:Price
          AmountInUSD
        }
      }
      Block {
        Time
      }
    }
  }
}

Similar queries