BacktestSyncer#

tradeexecutor.backtest.backtest_sync.BacktestSyncer class.

class BacktestSyncer[source]#

Bases: object

Simulate deposit events to the backtest wallet.

__init__(wallet, initial_deposit_amount)[source]#
Parameters

Methods

__init__(wallet, initial_deposit_amount)

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

Process the backtest initial deposit.

The backtest wallet is credited once at the start.

Parameters
Return type

List[ReserveUpdateEvent]