trade29.sc.OrderGroup#

class trade29.sc.OrderGroup(parent_id: int, stop_id: int = None, target_id: int = None)#

A group of orders.

Each order group has a parent order, and potentially a stop order and/or a limit (target) order. For example, submitting a single market order would create a group with just a parent, but submitting that market order with a single stop OCO supplied would create a group with a parent and a stop order.

Attributes

parent_id

(int) The ID of the parent order.

stop_id

(int, optional) The ID of the stop order.

target_id

(int, optional) The ID of the target order.