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

Streams DEX trades on Solana as they happen, where DEX protocol family is OpenBook: program address, protocol family, protocol name, buy currency name, buy currency symbol, buy currency mint address, buy amount and 9 more fields.

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

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolFamily: {is: "OpenBook"}}}}
    ) {
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Currency {
            Name
            Symbol
            MintAddress
          }
          Amount
          Account {
            Address
          }
          PriceAgainstSellCurrency:Price
        }
        Sell {
          Account {
            Address
          }
          Amount
          Currency {
            Name
            Symbol
            MintAddress
          }
          PriceAgainstBuyCurrency: Price
        }
      }
      Block {
        Time
      }
    }
  }
}

Similar queries