Skip to content

Commit 8c5b716

Browse files
author
rob
committed
black
1 parent 2713b0e commit 8c5b716

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

sysbrokers/IB/client/ib_client.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def broker_identity_for_contract(
214214
ib_code=str(contract_details.contract.symbol),
215215
ib_multiplier=float(contract_details.contract.multiplier),
216216
ib_exchange=str(contract_details.contract.exchange),
217-
ib_valid_exchange = str(contract_details.validExchanges)
217+
ib_valid_exchange=str(contract_details.validExchanges),
218218
)
219219

220220
def get_contract_details(
@@ -236,7 +236,9 @@ def get_contract_details(
236236
return contract_details
237237

238238
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+
)
240242

241243
return contract_details[0]
242244

sysbrokers/IB/ib_instruments_data.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ def __repr__(self):
3636
def get_instrument_code_from_broker_contract_object(
3737
self, broker_contract_object: ibContract
3838
) -> 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+
)
4143
)
4244

4345
if instrument_code is missing_contract:

0 commit comments

Comments
 (0)