> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.6mm.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.6mm.com/_mcp/server.

# Common Enums

<h2 id="orders">
  Orders
</h2>

| Enum                 | Values                                                                                                    |
| -------------------- | --------------------------------------------------------------------------------------------------------- |
| Order side           | `BUY` / `SELL`                                                                                            |
| Position side        | `BOTH` / `LONG` / `SHORT`                                                                                 |
| Normal order type    | `LIMIT` / `MARKET`                                                                                        |
| Condition order type | `STOP_MARKET` / `STOP_LIMIT` / `TAKE_PROFIT_MARKET` / `TAKE_PROFIT_LIMIT` / `TRAILING_STOP`               |
| Time in force        | `GTC` / `IOC` / `FOK` / `GTE_GTC`                                                                         |
| Trigger price type   | `MARK_PRICE` / `CONTRACT_PRICE`                                                                           |
| Order status         | `NEW` / `PENDING` / `PARTIALLY_FILLED` / `FILLED` / `CANCELED` / `REJECTED` / `PARTIALLY_FILLED_CANCELED` |

`NEW` means the order request has been accepted and returned. `PENDING` means the order has entered the pending or open-order state.

<h2 id="positions">
  Positions
</h2>

| Enum                      | Values                                                      |
| ------------------------- | ----------------------------------------------------------- |
| Margin mode request value | `1` cross, `2` isolated                                     |
| Margin mode string        | `ISOLATED` / `CROSS`                                        |
| Close trigger mode        | `1` manual, `2` take profit, `3` stop loss, `4` liquidation |