simulated_wallet#

API documentation for tradeexecutor.backtest.simulated_wallet Python module in Trading Strategy.

Module description#

On-chain balance simulator for backtesting.

  • We simulate ERC-20 token balances as they would appear in live trading

  • The simulation will catch bugs like incorrect accounting or rounding errors for the trade execution

Classes#

SimulatedWallet

A wallet that keeps token balances by ERC-20 address.