Solana trades websocket

Streams DEX trades on Solana as they happen: program address, protocol family, protocol name, buy account address, buy amount, buy currency mint address, buy decimals and 18 more fields.

By Renan Peres · saved 1 December 2024 · run 15 times · Bitquery API v2

What it returns

The subscription

subscription {
  Solana {
    DEXTrades {
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Account {
            Address
          }
          Amount
          Currency {
            MintAddress
            Decimals
            Symbol
            ProgramAddress
            Name
          }
          PriceAgaistSellCurrency: Price
          PriceInUSD
        }
        Sell {
          Account {
            Address
          }
          Amount
          Currency {
            MintAddress
            Decimals
            Symbol
            Name
          }
          PriceAgaistBuyCurrency: Price
          PriceInUSD
        }
      }
      Block {
        Time
        Height
      }
      Transaction {
        Signature
        FeePayer
        Signer
      }
    }
  }
}

Similar queries