Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| developers:websocket:orders [2026/01/26 13:17] – chad | developers:websocket:orders [2026/03/05 16:43] (current) – [AutoOCO Order] frank | ||
|---|---|---|---|
| Line 344: | Line 344: | ||
| An AutoOCO Order is a batch of three orders: | An AutoOCO Order is a batch of three orders: | ||
| * A Trigger Order that initiates the trade. | * A Trigger Order that initiates the trade. | ||
| - | * Two OCO Orders (Take Profit and Stop Loss) that execute based on the trigger order' | + | * Two OCO Orders (Take Profit and Stop Loss) that are submitted with prices that are differentials to the fill price of the trigger order. |
| If the Trigger Order fills, the OCO Orders are submitted. If the OCO Orders begin filling, any remaining volume in the Trigger Order is canceled. | If the Trigger Order fills, the OCO Orders are submitted. If the OCO Orders begin filling, any remaining volume in the Trigger Order is canceled. | ||
| Line 351: | Line 351: | ||
| < | < | ||
| - | OrderSubmit | + | { |
| - | | + | "UserId" |
| - | | + | " |
| - | | + | "AccountId" |
| - | | + | "MarketId" |
| - | | + | "OrderLink": 2, |
| - | { | + | " |
| - | | + | "Orders": |
| - | PriceType = PriceType.Limit, | + | { |
| - | | + | " |
| - | | + | " |
| - | | + | " |
| - | }, | + | " |
| - | { | + | " |
| - | BuySell = BuySell.Sell, | + | " |
| - | | + | " |
| - | TimeType = TimeType.Normal, | + | " |
| - | | + | " |
| - | | + | " |
| - | }, | + | }, |
| - | { | + | " |
| - | BuySell = BuySell.Sell, | + | " |
| - | | + | " |
| - | TimeType = TimeType.Normal, | + | " |
| - | | + | " |
| - | | + | " |
| - | } | + | " |
| - | | + | }, |
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ] | ||
| } | } | ||
| </ | </ | ||
| Line 455: | Line 496: | ||
| ^ Order Status ^ Order Change ^ Status Summary Message ^ Notes ^ | ^ Order Status ^ Order Change ^ Status Summary Message ^ Notes ^ | ||
| - | | **Finished States** | + | | **Finished States** |
| | Finished | '' | | Finished | '' | ||
| | Finished | '' | | Finished | '' | ||
| Line 466: | Line 507: | ||
| | Finished | '' | | Finished | '' | ||
| | Finished | '' | | Finished | '' | ||
| - | | **Rejected States** | + | | **Rejected States** |
| | Rejected | '' | | Rejected | '' | ||
| | Rejected | //(Other changes)// | " | | Rejected | //(Other changes)// | " | ||
| - | | **Working States** | + | | **Working States** |
| | Working | '' | | Working | '' | ||
| | Working | '' | | Working | '' | ||
| Line 480: | Line 521: | ||
| | Working | '' | | Working | '' | ||
| | Working | //(Any change with fills)// | "{Base Message}, Partial Fill" | Appended when TotalFillVolume > 0 | | | Working | //(Any change with fills)// | "{Base Message}, Partial Fill" | Appended when TotalFillVolume > 0 | | ||
| - | | **None (Pre-Submission) States** | + | | **None (Pre-Submission) States** |
| | None | None | " | | None | None | " | ||
| | None | '' | | None | '' | ||
| Line 486: | Line 527: | ||
| | None | '' | | None | '' | ||
| | None | '' | | None | '' | ||
| - | | **Held States** | + | | **Held States** |
| | Held | //(Any)// | "Held on Server..." | | Held | //(Any)// | "Held on Server..." | ||