File tree 2 files changed +1
-12
lines changed
2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -150,10 +150,6 @@ def get_instrument_code_from_broker_contract_object(
150
150
instrument_code = self .get_instrument_code_from_broker_identity_for_contract (
151
151
broker_identity
152
152
)
153
- if instrument_code is missing_contract :
154
- ## WE DON'T RAISE AN ERROR HERE AS IT CAUSES ERROR RECURSION SEE #1085
155
-
156
- return missing_contract
157
153
158
154
return instrument_code
159
155
@@ -194,9 +190,6 @@ def broker_identity_for_contract(
194
190
allow_expired = False ,
195
191
allow_multiple_contracts = False ,
196
192
)
197
- if contract_details is missing_contract :
198
- ## ## WE DON'T RAISE AN ERROR HERE AS IT CAUSES ERROR RECURSION SEE #1085
199
- return missing_contract
200
193
201
194
return IBInstrumentIdentity (
202
195
ib_code = str (contract_details .contract .symbol ),
@@ -217,8 +210,7 @@ def get_contract_details(
217
210
)
218
211
219
212
if len (contract_details ) == 0 :
220
- ## WE DON'T RAISE AN ERROR HERE AS IT CAUSES ERROR RECURSION SEE #1085
221
- return missing_contract
213
+ raise missingContract
222
214
223
215
if allow_multiple_contracts :
224
216
return contract_details
Original file line number Diff line number Diff line change @@ -596,9 +596,6 @@ def ib_get_contract_chain(
596
596
allow_multiple_contracts = True ,
597
597
)
598
598
599
- if new_contract_details_list is missing_contract :
600
- raise missingContract
601
-
602
599
ibcontract_list = [
603
600
contract_details .contract for contract_details in new_contract_details_list
604
601
]
You can’t perform that action at this time.
0 commit comments