Endpoint Details
- URL:
wss://pm-api-prod-eu.mobula.io - Event Type:
pm-market-details
/pm/market/details REST endpoint. Each push carries the current absolute values of the market-level stats block — subscribers can merge straight into the snapshot they fetched at page load. Updates are throttled to 1 per second per market server-side.
Subscription Format
Parameters
Platform name (e.g.,
polymarket).The platform-specific market identifier (Polymarket condition ID).
Custom subscription ID for tracking. Auto-generated if not provided.
Subscription Confirmation
Real-Time Updates
Each tick is a flat object whose mutable fields mirror thestats block of the REST response:
Response Field Definitions
| Field | Type | Description |
|---|---|---|
event | string | Always pm-market-details |
subscriptionId | string | Your subscription tracking ID |
platform | string | Platform name |
marketId | string | Market identifier |
totalVolumeUSD | number | All-time traded volume, in USD |
volume24hUSD | number | Volume traded over the last 24 hours, in USD |
liquidityUSD | number | Sum of notional book depth across all outcomes (Σ price × size on bids + asks) |
tradesCount | number | All-time trade count |
trades24h | number | Trades in the last 24 hours |
tradesPerMinute | number | Trade count over the last 60 seconds (momentum indicator) |
lastTradeAt | number | null | Timestamp of the most recent trade (ms epoch), or null if no trade observed since the ingress pod started |
timestamp | number | Server timestamp when this update was emitted (ms epoch) |
Update cadence
- Triggered on: every executed trade, every book snapshot
- Server-side throttle: at most 1 message per second per market
- Cold markets: the first push only happens once the market’s REST snapshot is in cache — hit
/pm/market/detailsonce at subscribe time to warm it instantly, or wait up to a few seconds.
Unsubscribe
Integration Example
Ping / Pong Keepalive
Send{ "event": "ping" } to receive { "event": "pong" }. The server also responds to WebSocket protocol-level pings — most client libraries handle these automatically.