Broker
ABC
Broker class that serves as a base for different broker implementations.
Brokers are responsible for managing orders and executing them into trades.
Pulse method should return the trades that were executed during the pulse.
Broker.open_orders
property
Broker.orders
property
Broker.pulse
abstractmethod
Broker.create_order
abstractmethod
SimulationBroker that happens during the broker step of the same pulse, at that
pulse’s market data (no execution delay and no slippage).
Parameters
SimulationBroker
Broker
Backtest broker that fills every open order in full on the pulse it is stepped on.
Orders are filled at that pulse’s market data, so there is no execution delay, no partial fill
and no slippage: a trade’s open_datetime is the pulse its order was placed on. Only market
orders exist; pass fill_price to create_order to model a haircut.
SimulationBroker.create_order
Raises

