console#

API documentation for tradeexecutor.cli.commands.console.console Python function.

console(id=<typer.models.OptionInfo object>, state_file=<typer.models.OptionInfo object>, strategy_file=<typer.models.OptionInfo object>, private_key=<typer.models.OptionInfo object>, trading_strategy_api_key=<typer.models.OptionInfo object>, cache_path=<typer.models.OptionInfo object>, minimum_gas_balance=<typer.models.OptionInfo object>, json_rpc_binance=<typer.models.OptionInfo object>, json_rpc_polygon=<typer.models.OptionInfo object>, json_rpc_ethereum=<typer.models.OptionInfo object>, json_rpc_avalanche=<typer.models.OptionInfo object>, json_rpc_arbitrum=<typer.models.OptionInfo object>, json_rpc_anvil=<typer.models.OptionInfo object>, asset_management_mode=<typer.models.OptionInfo object>, vault_address=<typer.models.OptionInfo object>, vault_adapter_address=<typer.models.OptionInfo object>, vault_payment_forwarder_address=<typer.models.OptionInfo object>, log_level=<typer.models.OptionInfo object>, unit_testing=<typer.models.OptionInfo object>)[source]#

Open interactive IPython console to explore state.

Open an interactive Python prompt where you can inspect and debug the current trade executor state.

Strategy, state and execution state are loaded to the memory for debugging.

Assumes you have a strategy deployed as a Docker container, environment variabels and such are set up, then you want to diagnose or modify the strategy environment after it has been taken offline.

For an example console command you can read the hot wallet balance by:

>>> web3.eth.get_balance(hot_wallet.address) / 10**18
Parameters: