solana trades subscription

Streams the latest 10 DEX trades on Solana as they happen, where buy currency mint address is DXxBZq…J1qM: block time, slot, transaction signature, transaction index, success, trade index, program address and 30 more fields.

By WILLIAN C DOMINGUES · saved 18 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTrades(
      orderBy: {descending: Block_Time}
      limit: {count: 10}
      where: {Trade: {Buy: {Currency: {MintAddress: {is: "DXxBZqGQsobnQ2LTZA4XSXn9EwuimgkveUC7H8b8J1qM"}}}}}
    ) {
      Block {
        Time
        Slot
      }
      Transaction {
        Signature
        Index
        Result {
          Success
        }
      }
      Trade {
        Index
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Amount
          Currency {
            MetadataAddress
            Key
            MintAddress
            IsMutable
            EditionNonce
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
          }
          Price
          PriceInUSD
          Order {
            LimitPrice
            LimitAmount
            OrderId
          }
        }
        Market {
          MarketAddress
        }
        Sell {
          Account {
            Address
          }
          Currency {
            IsMutable
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
          }
          Price
          PriceInUSD
        }
      }
    }
  }
}

Similar queries