wss://api.pmx.trade/v2/ws/market and subscribe to one or more market IDs to receive the following events.
book — Full Orderbook Snapshot
Sent immediately after subscribing. Contains the full depth for both outcomes.
price_change — Individual Level Update
Sent when a single price level changes. A size of "0" means the level was removed.
best_bid_ask — Top of Book Change
Sent only when the best bid or ask changes for either outcome.
trade — Fill Execution
Sent when an order is matched or settled. Use the id field to deduplicate — a trade may fire twice (once on matched, once on settled with settleTx).
| Field | Description |
|---|---|
id | Unique fill ID |
fillType | direct, complementary, or sell_complementary |
status | matched or settled |
settleTx | Solana transaction signature (present when status is settled) |
