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/04/29 19:55] – chad | 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 100: | Line 52: | ||
| ==== Key FIX Tags ==== | ==== Key FIX Tags ==== | ||
| - | ^ Tag ^ Field Name | + | ^ Tag ^ Field Name ^ Settlement Value ^ |
| - | | 35 | MsgType | + | | 1 | Account |
| - | | 39 | OrdStatus | + | | 8 | BeginString |
| - | | 54 | Side | + | | 9 | BodyLength |
| - | | 44 | + | | 10 | CheckSum |
| - | | 40 | + | | 11 | ClOrdID |
| - | | 32 | + | | 14 | CumQty |
| - | | 150 | ExecType | + | | 17 | ExecID |
| - | | 55 | + | | 21 | HandlInst |
| + | | 31 | LastPx | ||
| + | | 32 | LastQty | ||
| + | | 34 | MsgSeqNum | ||
| + | | 35 | MsgType | ||
| + | | 37 | OrderID | ||
| + | | 38 | OrderQty | ||
| + | | 39 | OrdStatus | ||
| + | | 40 | OrdType | ||
| + | | 44 | Price | 0 or 1 | | ||
| + | | 48 | SecurityID | ||
| + | | 49 | SenderCompID | ||
| + | | 50 | SenderSubID | ||
| + | | 52 | SendingTime | ||
| + | | 54 | Side | ||
| + | | 55 | ||
| + | | 56 | ||
| + | | 59 | TimeInForce | ||
| + | | 60 | ||
| + | | 97 | ||
| + | | 107 | SecurityDesc | ||
| + | | 151 | LeavesQty | ||
| + | | 167 | SecurityType | ||
| + | | 200 | MaturityMonthYear | ||
| + | | 201 | PutOrCall | ||
| + | | 204 | CustOrderCapacity | ||
| + | | 207 | SecurityExchange | ||
| + | | 447 | PartyIDSource | ||
| + | | 448 | PartyID | ||
| + | | 452 | PartyRole | ||
| + | | 453 | NoPartyIDs | ||
| ==== Example: Won (Long Position, Settles at 1) ==== | ==== Example: Won (Long Position, Settles at 1) ==== | ||
| < | < | ||
| - | [TBD -- FIX Execution Report example message] | + | << 8 : 1=ExampleAccount| |
| - | 8=FIX.4.2|35=8|49=[SenderCompID]|56=[TargetCompID]| | + | [9=451|35=8] EXECUTION: Market **SELL 1@1** | Order=CB7ED23B-1D2F-4652-BE77-DF16DB3ED854 | Filled=1/ |
| - | 54=2|44=1|40=[TBD]|32=1|39=[TBD]|150=[TBD]|55=[Symbol]|10=[checksum] | + | |
| </ | </ | ||
| Line 121: | Line 101: | ||
| < | < | ||
| - | [TBD -- FIX Execution Report example message] | + | << 8 : 1=ExampleAccount| |
| - | 8=FIX.4.2|35=8|49=[SenderCompID]|56=[TargetCompID]| | + | [9=451|35=8] EXECUTION: Market **SELL 1@0** | Order=CB7ED23B-1D2F-4652-BE77-DF16DB3ED854 | Filled=1/ |
| - | 54=2|44=0|40=[TBD]|32=1|39=[TBD]|150=[TBD]|55=[Symbol]|10=[checksum] | + | |
| </ | </ | ||
| Line 129: | Line 108: | ||
| < | < | ||
| - | [TBD -- FIX Execution Report example message] | + | << 8 : 1=ExampleAccount| |
| - | 8=FIX.4.2|35=8|49=[SenderCompID]|56=[TargetCompID]| | + | [9=451|35=8] EXECUTION: Market **BUY 1@0** | Order=CB7ED23B-1D2F-4652-BE77-DF16DB3ED854 | Filled=1/ |
| - | 54=1|44=0|40=[TBD]|32=1|39=[TBD]|150=[TBD]|55=[Symbol]|10=[checksum] | + | |
| </ | </ | ||