Skip to content

Commit

Permalink
fix access to contract id
Browse files Browse the repository at this point in the history
  • Loading branch information
Da5hes committed Sep 11, 2024
1 parent aa0bfdf commit af468aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deephaven_ib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ def request_single_pnl(self, contract: RegisteredContract, account: str, model_c
Exception: problem executing action.
"""
self._assert_connected()
req_id = self._client.request_single_pnl(account, model_code, contract.conId)
req_id = self._client.request_single_pnl(account, model_code, contract.contract_details[0].contract.conId)
return Request(request_id=req_id)


Expand Down

0 comments on commit af468aa

Please sign in to comment.