Advanced orders allow one to place a sequence of orders in a single request. Typically, they rely on triggering conditions set with the market center that will take a particular action on the orders.
Sending multiple orders is similar to sending multiple legs in that each order’s property keys are indexed (symbol[2]
) to specify the correct arrangement of the orders.
Advanced orders have some different validations than regular orders. Each order type, has some special validations that will be enforced on order placement.
One-cancels-other (OCO)
type
must be different for both legs.symbol
must be the same.option_symbol
must be the same.duration
per leg, both orders must have the same duration.One-triggers-one-cancels-other (OTOCO)
symbol
.option_symbol
.duration
per leg, second and third orders must have the same duration.