Place a margin or futures market order over the WhiteBIT WebSocket connection with collateral_order_market_place.
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.
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.
The result object is the standard order object plus reduce_only and position_side — see the order object reference. A margin market order reports type8 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.