Get real-time WebSocket streams for multiple pairs or tokens with enriched market data.
wss://api.mobula.io
pairs
pairs
endpoint supports multiple payload formats and can handle both pool addresses and token assets.
items
array format:
items
(required for multiple items): Array of subscription items, each containing:
blockchain
(required): Blockchain identifier (e.g., "evm:1"
, "solana"
)asset
(optional): Asset name, symbol, or addresssymbol
(optional): Asset symbol for better identificationaddress
(optional): Direct pool or token addressasset
(optional, legacy): Single token address or name for backward compatibilityaddress
(optional, legacy): Single pool address for backward compatibilityblockchain
(optional): Blockchain identifier for single item subscriptionsmode
(optional): Stream mode - "asset"
or "pair"
. Defaults to "pair"
subscriptionId
(optional): Unique identifier for your WebSocket connection. Auto-generated if not providedsubscriptionTracking
(optional, default: false
): Include subscription details in response logs for debugginginterval
(optional, default: 30
): Refresh interval in secondsfactory
(optional): Filter by specific factory contractitems
array format. Each item in the array can specify either an asset
(token) or address
(pool) along with its blockchain.CuratedSwap
:
pair
: Pool address where the trade occurreddate
: Trade timestamp in millisecondstoken_price
: Price of the base token in USDtoken_price_vs
: Price of the quote token in USDtoken_amount
: Amount of base token tradedtoken_amount_vs
: Amount of quote token tradedtoken_amount_usd
: USD value of the tradetype
: Trade type - "buy"
or "sell"
operation
: Operation type (e.g., "regular"
, "limit"
)blockchain
: Human-readable blockchain namehash
: Transaction hashsender
: Address that initiated the transactiontoken_amount_raw
: Raw token amount (string to handle large numbers)token_amount_raw_vs
: Raw quote token amount (string)pairData
: Full EnrichedPoolData
for pool subscriptionstokenData
: Full EnrichedTokenData
for token subscriptionssubscriptionId
when subscribing, one is auto-generated. To retrieve it, set "subscriptionTracking": true
in the subscription payload.pair
endpoint is still supported but consider migrating to the new pairs
endpoint for better performance and flexibility. The legacy endpoint documentation can be found here.pairs
endpoint: