Subscriptions use
wss://graphql.mobula.io/graphql with the graphql-transport-ws protocol. wss://graphql.mobula.io/graphql/subscriptions is also supported for backwards compatibility.Returns
A live trade payload. See TradeSubscriptionPayload.
Arguments
Modes
- Default mode subscribes to pair/pool addresses.
assetMode: truesubscribes to token contract addresses or Solana token mints.traderMode: truesubscribes to wallet addresses.assetModeandtraderModecannot be enabled together.
Example - token mode
Example response
Matching REST trades
Useid when it is present. When id is null, use stable_id to match a streamed trade deterministically. stable_id is built from the chain id, transaction hash, pool address, and swap index, so it disambiguates multi-swap transactions where hash alone is not enough.
Use token_amount_raw and token_amount_raw_vs for exact on-chain quantities. They avoid lossy amount reconstruction from token_amount_usd / token_price.