Place a spot stop-market order sized in the base asset on both sides with order_stop_market_stock_place.
Fire a market order sized in the base asset when the market reaches activation_price. The trigger semantics match order_stop_market_place; only the unit of amount differs — here it is stock on a buy as well as on a sell.
The result object adds the conditional fields to the standard order object — see the order object reference. This method reports type203, the stock-denominated stop-market code.
A buy spends quote currency at activation even though the order is sized in stock. The balance must cover amount multiplied by the best ask at trigger time, plus fee.