Browse Source

fix: pass state to the strat

pull/14/head
QuentinN42 1 year ago
parent
commit
4f6202c470
Signed by: number42 GPG Key ID: 2CD7D563712B3A50
  1. 2
      auto_trading/main.py

2
auto_trading/main.py

@ -34,7 +34,7 @@ class Bot:
def run_once(self, data: DataFrame):
"""run the bot once"""
orders = self.strategy.run(data)
orders = self.strategy.run(data, self.ptf.state)
self.logger.debug("Get %d orders to execute", len(orders))
self.ptf.execute_multiples(orders)

Loading…
Cancel
Save