Skip to content

Commit af468aa

Browse files
committed
fix access to contract id
1 parent aa0bfdf commit af468aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/deephaven_ib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ def request_single_pnl(self, contract: RegisteredContract, account: str, model_c
801801
Exception: problem executing action.
802802
"""
803803
self._assert_connected()
804-
req_id = self._client.request_single_pnl(account, model_code, contract.conId)
804+
req_id = self._client.request_single_pnl(account, model_code, contract.contract_details[0].contract.conId)
805805
return Request(request_id=req_id)
806806

807807

0 commit comments

Comments
 (0)