Message: CompoundOrder

File: WebAPI/order_2.proto

Description

Compound order.

Used in

CompoundOrderEntry, NewCompoundOrder

Fields

type

Type: uint32

Description: This field is associated with Type enum type.

cl_compound_id

Type: string

Description: ID of the compound order assigned by client. Maximum allowed length is 64 bytes.

compound_order_entries

Type: CompoundOrderEntry

Description: List of entries.

profit_tick_offset

Type: sint32

Description: Offset in ticks from fill price (variable ticks size is supported). The new order price will be calculated as (fill price + offset) for buy master orders and (price - offset) for sell master orders.

loss_tick_offset

Type: sint32

Description: Offset in ticks from fill price (variable ticks size is supported). The new order price will be calculated as (fill price - offset) for buy master orders and (price + offset) for sell master orders.

stop_limit_tick_offset

Type: sint32

Description: Offset in ticks from loss_tick_offset for stop limit orders (variable ticks size is supported). The offset determines the limit price for stop limit order after the stop price is hit.

is_bracket

Type: bool

Description: Treat compound order as server-side bracket.

Enum Type

Description: Type of the compound order.

Values

      TYPE_OPO = 1

     Order Places Order. [Partial] fill of the first entry triggers [partial] placement of all other orders.

      TYPE_OCO = 2

     Order Cancels Order. This type allows several compound order entries. [Partial] fill of any order triggers [partial] canceling of all other orders.

      TYPE_INDEPENDENT = 3

     A set of otherwise unrelated orders being placed in one action.