Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| developers:websocket:orders [2025/03/14 22:10] – chad | developers:websocket:orders [2026/01/23 20:15] (current) – chad | ||
|---|---|---|---|
| Line 424: | Line 424: | ||
| When the **Trigger Order** executes, the **Take Profit** and **Stop Loss** orders are placed. If the price reaches the take profit level, the stop loss order is canceled, and vice versa. | When the **Trigger Order** executes, the **Take Profit** and **Stop Loss** orders are placed. If the price reaches the take profit level, the stop loss order is canceled, and vice versa. | ||
| + | |||
| + | |||
| + | ==== Flatten Position ==== | ||
| + | |||
| + | A Flatten Position Order closes the entire position in the specified market by submitting an offsetting order at market price. | ||
| + | |||
| + | Example **Flatten Position Order** message: | ||
| + | |||
| + | < | ||
| + | OrderSubmit { | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | { | ||
| + | | ||
| + | } | ||
| + | ] | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | The Flatten Position order automatically determines the correct side (Buy/Sell) and volume based on the current position. | ||
| + | </ | ||
| + | |||