Skip to content

GroupOrderCacheManager

QuantConnect.Orders.GroupOrderCacheManager

Bases: Object

Provides a thread-safe service for caching and managing original orders when they are part of a group.

try_get_group_cached_orders

try_get_group_cached_orders(
    order: Order, orders: Optional[List[Order]]
) -> Tuple[bool, List[Order]]

Attempts to retrieve all the orders in the combo group from the cache.

Parameters:

Name Type Description Default
order Order

Target order, which can be any of the legs of the combo

required
orders Optional[List[Order]]

List of orders in the combo

required

Returns:

Type Description
Tuple[bool, List[Order]]

true if all the orders in the combo group were successfully retrieved from the cache; otherwise, false. If the retrieval fails, the target order is cached for future retrieval.