bootstrap#

API documentation for tradeexecutor.cli.bootstrap Python module in Trading Strategy.

Module description#

Command line application initialisation helpers.

Functions#

backup_state(state_file[, backup_suffix])

Take a copy of the state file, then read the original file.

create_approval_model(approval_type)

create_client(mod, web3config, ...)

Create a Trading Strategy client instance.

create_execution_and_sync_model(...[, ...])

Set up the wallet sync and execution mode for the command line client.

create_execution_model(routing_hint, ...[, ...])

Set up the code transaction building logic.

create_metadata(name, short_description, ...)

Create metadata object from the configuration variables.

create_state_store(state_file[, simulate])

create_sync_model(asset_management_mode, ...)

create_web3_config(json_rpc_binance, ...[, ...])

Create Web3 connection to the live node we are executing against.

monkey_patch()

Apply all monkey patches.

prepare_cache(executor_id, cache_path[, ...])

Prepare a cache location for this trade-executor.

prepare_executor_id(id, strategy_file)

Autodetect exeuctor id.

validate_executor_id(id)

Check that given executor id is good.