BacktestSyncer#

tradeexecutor.backtest.legacy_backtest_sync.BacktestSyncer Python class in Trading Strategy framework.

class BacktestSyncer[source]#

Bases: object

LEGACY backtest sync model.

Simulate deposit events to the backtest wallet.

Warning

Does not correctly fire any balance update events. Can be used to backtest with a fixed initial amount only.

__init__(wallet, initial_deposit_amount)[source]#
Parameters:

Methods

__init__(wallet, initial_deposit_amount)

__init__(wallet, initial_deposit_amount)[source]#
Parameters:
__call__(state, ts, supported_reserves)[source]#

Process the backtest initial deposit.

The backtest wallet is credited once at the start.

Parameters:
Return type:

List[ReserveUpdateEvent]