A market order is an immediate buy/sell at the current price. In cBots, market orders are placed via ExecuteMarketOrder()
(see above). The PlaceStopOrder
and PlaceLimitOrder
methods place pending orders, whereas a market order executes immediately. The trading operations guide explains that a market order is sent when you call ExecuteMarketOrder()
(as opposed to pending orders).