init#

tradeexecutor.cli.init module.

Module description#

Command line application initialisation helpers.

Functions#

create_approval_model(approval_type)

create_metadata(name, short_description, ...)

Create metadata object from the configuration variables.

create_state_store(state_file)

create_trade_execution_model(execution_type, ...)

Set up the execution mode for the command line client.

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)

Fail early if the cache path is not writable.

prepare_executor_id(id, strategy_file)

Autodetect exeuctor id.

validate_executor_id(id)

Check that given executor id is good.