DummyWalletSyncer#

tradeexecutor.testing.dummy_wallet.DummyWalletSyncer Python class in Trading Strategy framework.

class DummyWalletSyncer[source]#

Bases: object

Simulate a wallet events with a fixed balance set in the beginning.

__init__(initial_deposit_amount=Decimal('0'))[source]#
Parameters:

initial_deposit_amount (Decimal) –

Methods

__init__([initial_deposit_amount])

__init__(initial_deposit_amount=Decimal('0'))[source]#
Parameters:

initial_deposit_amount (Decimal) –

__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]