Executing Orders
Last updated
Last updated
Executing orders in unamanged trading happens with 4 commands: PlaceBuyOrder, PlaceGoLongOrder, PlaceSellOrder and PlaceGoShortOrder. These commands will return an order identifier (order ID) which can be used to control specific orders in the order books or to get information about their current status.
There are multiple order types that can be utilized in several commands, such as SetOrderType and the fore-mentioned PlaceOrder commands.
LimitOrderType
Executes a limit order which can be placed in the order books. The timeout parameter is used when using this order type. Default timeout is 10 minutes.
MarketOrderType
Executes a market order which will trade with the current market price. These order types execute immediately by filling the set trade amount with the orders from opposite order book.
NoTimeOutOrderType
Executes a limit order which can be placed in the order books. The timeout parameter is ignored when using this order type.
MakerOrCancelOrderType
Executes a limit order which will either be placed in the order book or cancelled if the order would execute immediately by filling another order. The timeout parameter is used when using this order type. Default timeout is 10 minutes. If the current exchange does not support this type, a normal limit order will be executed.