Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| developers:websocket:orders [2026/01/26 13:25] – external edit (Unknown date) 127.0.0.1 | 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, | + | " |
| - | | + | " |
| - | | + | " |
| - | } | + | " |
| - | | + | }, |
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ] | ||
| } | } | ||
| </ | </ | ||