Skip to content

Commit

Permalink
Skip nautilus_ibapi package version check
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Oct 27, 2023
1 parent f79372c commit 17ba118
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions nautilus_trader/adapters/interactive_brokers/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 17ba118

Please sign in to comment.