This is different from the April 2026 exchange upgrade (pUSD collateral,
version: 2 on events), which is covered in the pUSD migration guide.What is covered
Subscribe to trades
Open a fresh connection towss://wss.predexon.com/v1/<API_KEY>. The existing orders request receives matching legacy and Protocol V2 fills by default. If you still have a legacy-only subscription on an older connection, reconnect and resend the same request.
- Optionally set the top-level
protocol_versionsfield to["v1"]for legacy CTF fills,["v2"]for native V2 fills, or["v1", "v2"]for both. - Keep
version: 1for the Predexon subscription schema. - Filters, plan limits and wildcard rules are the same as for any subscription.
status: "pending"and"all"work as described in Pending Trades. - The selection is fixed for the life of the subscription. To change it, unsubscribe and subscribe again.
Check the acknowledgement
When the subscription includes native V2, theack reports the selected protocol_versions and supported capabilities.
protocol_versions includes "v2" and capabilities includes v2.trades.finalized. For status: "pending" or "all", also check for v2.trades.pending.
Identifying Protocol V2 fills
Protocol V2 fills use the sameorder_filled event, with these differences:
Protocol V2 fills do not carry the
version field from the April 2026 upgrade.
Combo fills
Combo fills (module_id: 3) are part of the WebSocket trade stream. They carry the native position and condition IDs, trade amounts, and transaction hash. When the combo definition is available, combo_legs contains the on-chain leg position IDs and metadata_status is "onchain_definition". A combo can have an empty market_slug and null title and market_id because its metadata comes from the on-chain definition.
Use a wallet filter, the combo’s own condition ID, or a wildcard subscription to receive these fills. A slug filter can only match fills with that slug, so a leg’s market slug does not match the combo. REST trade history excludes combo fills.
Volume
A maker fill and the matching taker fill describe the two sides of one trade. Do not add both sides together when computing traded volume.Pending fills
Pending Protocol V2 fills are mempool predictions withprediction: true, execution_verified: false, source_finality: "pending", and null block and log fields. They can be dropped, replaced, or reverted. Early pending fills on newly seen regular markets can be withheld while metadata is being verified. A pending fill and its confirmed fill have different event_id values. Correlate them by tx_hash and order_hash.
Source status messages
Protocol V2 subscribers also receivesource_status messages:
gap and sends a fresh ready when the source recovers. Read trade fills from top-level type: "event" frames. If you receive gap, paused, or unavailable, reconcile the affected period using a history source that covers the market and ledger. A later ready confirms current health without replaying missed trades.
Timing
Confirmed Protocol V2 fills are published once their block is finalized, normally a few seconds after the block. During an upstream source problem a fill can occasionally arrive up to 10 minutes late, still with its real blocktimestamp.