Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| developers:predictionmarkets [2026/08/27 16:55] – [Key FIX Tags] chris | developers:predictionmarkets [2026/08/27 19:07] (current) – chris | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== THIS PAGE IS UNDER CONSTRUCTION ====== | ||
| - | |||
| - | |||
| - | |||
| ====== Prediction Markets ====== | ====== Prediction Markets ====== | ||
| Line 47: | Line 43: | ||
| **Note:** Settlement messages are generated by the platform and do not represent a resting order in the book. They will not appear in the order book feed and should be treated as system-generated close events. | **Note:** Settlement messages are generated by the platform and do not represent a resting order in the book. They will not appear in the order book feed and should be treated as system-generated close events. | ||
| </ | </ | ||
| - | |||
| - | ===== WebSocket API ===== | ||
| - | |||
| - | Settlement is communicated via the standard order update message on the Trading API WebSocket feed. Subscribe to the account feed and watch for order updates matching the criteria above. | ||
| - | |||
| - | For full message field definitions see [[developers: | ||
| - | |||
| - | ==== Example: Won (Long Position, Settles at 1) ==== | ||
| - | |||
| - | The following is an example order update received when a long position of 1 contract settles in the money. | ||
| - | |||
| - | <code javascript> | ||
| - | // [TBD -- WebSocket order update JSON/ | ||
| - | // Fields to highlight: | ||
| - | // | ||
| - | // | ||
| - | // | ||
| - | // | ||
| - | // | ||
| - | </ | ||
| - | |||
| - | ==== Example: Lost (Long Position, Settles at 0) ==== | ||
| - | |||
| - | <code javascript> | ||
| - | // [TBD -- WebSocket order update JSON/ | ||
| - | // Fields to highlight: | ||
| - | // | ||
| - | // | ||
| - | // | ||
| - | // | ||
| - | // | ||
| - | </ | ||
| - | |||
| - | ==== Example: Won (Short Position, Settles at 0) ==== | ||
| - | |||
| - | <code javascript> | ||
| - | // [TBD -- WebSocket order update JSON/ | ||
| - | // Fields to highlight: | ||
| - | // | ||
| - | // | ||
| - | // | ||
| - | // | ||
| - | // | ||
| - | </ | ||
| ===== FIX API ===== | ===== FIX API ===== | ||