listen trades

监听实时交易信息

Streams DEX trades on Solana as they happen: block time, slot, transaction signature, transaction index, success, trade index, program address and 38 more fields.

By zhongxiao an · saved 18 April 2025 · Bitquery API v2

What it returns

The subscription

subscription {
  Solana {
    DEXTrades(
    where: {
        Transaction: {Result: {Success: true}},
        Instruction: {
          Accounts: {
            includes: {Address: {is: "2sNTkiWzt1tp1WwwEUw4TvK58SfhpeEEkaVyxwtoDwW1"}}
          }
        }
      }
    ) {
      Block{
        Time
        Slot
      }
      Transaction{
        Signature
        Index
        Result{
          Success
        }
      }
      Trade {
        Index
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Amount
          AmountInUSD
          Account {
            Address
          }
          Currency {
            MetadataAddress
            Key
            MintAddress
            IsMutable
            EditionNonce
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
          }
          Price
          PriceInUSD
          Order {
            LimitPrice
            LimitAmount
            OrderId
          }
          
        }
        Market {
          MarketAddress
        }
        Sell {
          Amount
          AmountInUSD
          Account {
            Address
          }
          Currency {
            MetadataAddress
            Key
            MintAddress
            IsMutable
            EditionNonce
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
          }
          Price
          PriceInUSD
        }
      }
    }
  }
}

Similar queries