Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull broker only takes 2 params. #639

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lumibot/components/drift_rebalancer_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ def _rebalance(self, df: pd.DataFrame = None) -> None:
time.sleep(self.fill_sleeptime)
try:
for order in sell_orders:
pulled_order = self.strategy.broker._pull_order(order.identifier, self.strategy.name, self.strategy)
msg = f"Submitted order status: {pulled_order}"
pulled_order = self.strategy.broker._pull_order(order.identifier, self.strategy.name)
msg = f"Status of submitted sell order: {pulled_order}"
self.strategy.logger.info(msg)
self.strategy.log_message(msg, broadcast=True)
except Exception as e:
Expand Down Expand Up @@ -375,8 +375,8 @@ def _rebalance(self, df: pd.DataFrame = None) -> None:
time.sleep(self.fill_sleeptime)
try:
for order in buy_orders:
pulled_order = self.strategy.broker._pull_order(order.identifier, self.strategy.name, self.strategy)
msg = f"Submitted order status: {pulled_order}"
pulled_order = self.strategy.broker._pull_order(order.identifier, self.strategy.name)
msg = f"Status of submitted buy order: {pulled_order}"
self.strategy.logger.info(msg)
self.strategy.log_message(msg, broadcast=True)
except Exception as e:
Expand Down
Loading