From 17ba1187fc5fb3eb6550caf0f2aadf11f103c948 Mon Sep 17 00:00:00 2001 From: Chris Sellers Date: Sat, 28 Oct 2023 10:41:27 +1100 Subject: [PATCH] Skip nautilus_ibapi package version check --- .../interactive_brokers/client/client.py | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/nautilus_trader/adapters/interactive_brokers/client/client.py b/nautilus_trader/adapters/interactive_brokers/client/client.py index 7c00587c7a13..fdbfee544233 100644 --- a/nautilus_trader/adapters/interactive_brokers/client/client.py +++ b/nautilus_trader/adapters/interactive_brokers/client/client.py @@ -49,9 +49,6 @@ from ibapi.utils import current_fn_name from ibapi.wrapper import EWrapper -from nautilus_trader import PYPROJECT_PATH -from nautilus_trader import get_package_version_from_toml -from nautilus_trader import get_package_version_installed from nautilus_trader.adapters.interactive_brokers.client.common import AccountOrderRef from nautilus_trader.adapters.interactive_brokers.client.common import IBPosition from nautilus_trader.adapters.interactive_brokers.client.common import Requests @@ -82,15 +79,15 @@ # fmt: on -# Check ibapi package versioning -ibapi_package = "nautilus_ibapi" -ibapi_version_specified = get_package_version_from_toml(PYPROJECT_PATH, ibapi_package, True) -ibapi_version_installed = get_package_version_installed(ibapi_package) - -if ibapi_version_specified != ibapi_version_installed: - raise RuntimeError( - f"Expected `{ibapi_package}` version {ibapi_version_specified}, but found {ibapi_version_installed}", - ) +# Check ibapi package versioning (skipping for now) +# ibapi_package = "nautilus_ibapi" +# ibapi_version_specified = get_package_version_from_toml(PYPROJECT_PATH, ibapi_package, True) +# ibapi_version_installed = get_package_version_installed(ibapi_package) +# +# if ibapi_version_specified != ibapi_version_installed: +# raise RuntimeError( +# f"Expected `{ibapi_package}` version {ibapi_version_specified}, but found {ibapi_version_installed}", +# ) class InteractiveBrokersClient(Component, EWrapper):