Live Execution

class src.boatwright.LiveExecution.LiveExecution(strategy, broker, debug=False)

Execute a strategy in real time

Parameters:
  • strategy (Strategy) – strategy

  • broker (Broker) – broker, can be either a backtest broker or live broker interface

  • debug – boolean toggle to print debugging information to terminal

async step(bar)

actions on each bar of data recieved

Parameters:

bar (DataFrame)