From af468aad7a879a79ffb41403edecb6e0e44b1454 Mon Sep 17 00:00:00 2001 From: Da5hes Date: Thu, 12 Sep 2024 00:30:19 +0300 Subject: [PATCH] fix access to contract id --- src/deephaven_ib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deephaven_ib/__init__.py b/src/deephaven_ib/__init__.py index 43e2fb22..39402d00 100644 --- a/src/deephaven_ib/__init__.py +++ b/src/deephaven_ib/__init__.py @@ -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)