File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ def broker_identity_for_contract(
214
214
ib_code = str (contract_details .contract .symbol ),
215
215
ib_multiplier = float (contract_details .contract .multiplier ),
216
216
ib_exchange = str (contract_details .contract .exchange ),
217
- ib_valid_exchange = str (contract_details .validExchanges )
217
+ ib_valid_exchange = str (contract_details .validExchanges ),
218
218
)
219
219
220
220
def get_contract_details (
@@ -236,7 +236,9 @@ def get_contract_details(
236
236
return contract_details
237
237
238
238
elif len (contract_details ) > 1 :
239
- self .log .critical ("Multiple contracts and only expected one - returning the first" )
239
+ self .log .critical (
240
+ "Multiple contracts and only expected one - returning the first"
241
+ )
240
242
241
243
return contract_details [0 ]
242
244
Original file line number Diff line number Diff line change @@ -36,8 +36,10 @@ def __repr__(self):
36
36
def get_instrument_code_from_broker_contract_object (
37
37
self , broker_contract_object : ibContract
38
38
) -> str :
39
- instrument_code = self .ib_client .get_instrument_code_from_broker_contract_object (
40
- broker_contract_object
39
+ instrument_code = (
40
+ self .ib_client .get_instrument_code_from_broker_contract_object (
41
+ broker_contract_object
42
+ )
41
43
)
42
44
43
45
if instrument_code is missing_contract :
You can’t perform that action at this time.
0 commit comments