Skip to content

Commit

Permalink
refactor: get GroupCached Order use Lean extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Romazes committed Sep 4, 2024
1 parent cb1dd62 commit 2c61d1a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1343,13 +1343,10 @@ private void Initialize(
/// <param name="exchange">The exchange to send the order to, defaults to "Smart" to use IB's smart routing</param>
private void IBPlaceOrder(Order order, bool needsNewId, string exchange = null)
{
if (!order.TryGetGroupOrders(_groupOrderCacheManager.TryGetOrder, out var orders))
if (!_groupOrderCacheManager.TryGetGroupCachedOrders(order, out var orders))
{
// some order of the group is missing but cache the new one
_groupOrderCacheManager.CacheOrder(order);
return;
}
_groupOrderCacheManager.RemoveCachedOrders(orders);

// MOO/MOC require directed option orders.
// We resolve non-equity markets in the `CreateContract` method.
Expand Down

0 comments on commit 2c61d1a

Please sign in to comment.