Skip to main content
Coming soon: order placement over WebSocket becomes available on September 2, 2026, on the global platform only. The EU platform is not yet supported.
Open, extend, reduce, or close a position at the order book price. Sending the position size on the opposite side is the usual way to flatten a position.

Rate limits

Place margin market order

Request parameters

No money-denominated variant exists for this family. Unlike spot, amount is stock on both sides, which is why there is no collateral_order_market_stock_place — this method already behaves that way.

Response

The result object is the standard order object plus reduce_only and position_side — see the order object reference. A margin market order reports type 8 and price "0".
Set reduce_only when closing a position. Without it a stale size larger than the open position flips the position instead of flattening it. With the flag set, an order that would flip is rejected with error 115, and an order with nothing to reduce is rejected with error 116 or dropped with status AUTO_CANCELED_REDUCE_ONLY.

Error codes

Standard transport errors and the shared account, rate-limit, and region codes are listed in Order Management.