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:52] – [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 ===== | ||
| Line 115: | Line 67: | ||
| | 37 | OrderID | | 37 | OrderID | ||
| | 38 | OrderQty | | 38 | OrderQty | ||
| - | | 39 | OrdStatus | + | | 39 | OrdStatus |
| - | | 40 | OrdType | + | | 40 | OrdType |
| | 44 | Price | 0 or 1 | | | 44 | Price | 0 or 1 | | ||
| | 48 | SecurityID | | 48 | SecurityID | ||
| Line 128: | Line 80: | ||
| | 60 | TransactTime | | 60 | TransactTime | ||
| | 97 | LocateReqd | | 97 | LocateReqd | ||
| - | | 107 | SecurityDesc | + | | 107 | SecurityDesc |
| | 151 | LeavesQty | | 151 | LeavesQty | ||
| | 167 | SecurityType | | 167 | SecurityType | ||