Skip to content

Commit

Permalink
🐛 update ibkr.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Feb 13, 2025
1 parent 665f28c commit 7d28b51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cefi/handler/ibkr.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def __init__(self, **kwargs):
super().__init__(**kwargs)
self.client = None
self.account_number = None
if not self.host:
self.host = "http://ibeam:5000/v1/api/"

if not self.enabled:
return
Expand All @@ -38,8 +40,7 @@ def __init__(self, **kwargs):
# or your own gateway URL
# for ibeam you can use the preconfigured
# docker https://github.com/Voyz/ibeam
self.url = self.url or "http://ibeam:5000/v1/api/"
self.client = IbkrClient(url=self.url)
self.client = IbkrClient(url=self.host)

# Verify connection
tickle_result = self.client.tickle()
Expand Down

0 comments on commit 7d28b51

Please sign in to comment.