Fixes having only orderStatus=None at algo start for open orders.
Description
GetOpenOrders in BrokerageSetupHandler returned orders without status.
Modified GetOpenOrdersInternal to also populate the OrderStatus when fetching open orders from brokerage.
Fixes having only orderStatus=None at algo start for open orders.
Requires Documentation Change
No
How Has This Been Tested?
Fetched open limit orders from Live Paper Trading account and ensured orderTickets have Status=OrderStatus.Submitted
after initialization. Previously, None.
Tested with fix IB Gateway version: 10.192b and TWS 10.24.1c
Types of changes
[x ] Bug fix (non-breaking change which fixes an issue)
[ ] Refactor (non-breaking change which improves implementation)
[ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Fixes having only orderStatus=None at algo start for open orders.
Description
GetOpenOrders in BrokerageSetupHandler returned orders without status. Modified GetOpenOrdersInternal to also populate the OrderStatus when fetching open orders from brokerage.
Related Issue
Closes https://github.com/QuantConnect/Lean.Brokerages.InteractiveBrokers/issues/77
Motivation and Context
Fixes having only orderStatus=None at algo start for open orders.
Requires Documentation Change
No
How Has This Been Tested?
Fetched open limit orders from Live Paper Trading account and ensured orderTickets have Status=OrderStatus.Submitted after initialization. Previously, None. Tested with fix IB Gateway version: 10.192b and TWS 10.24.1c
Types of changes
Checklist:
bug-<issue#>-<description>
orfeature-<issue#>-<description>