init#

tradeexecutor.cli.commands.init Python module in Trading Strategy framework.

Module description#

init command.

Quick local dev example:

# Set up JSON_RPC_POLYGON
source env/local-test.env

# Set up hto wallet private key
export PRIVATE_KEY=...

poetry run trade-executor init         --id=vault-init-test         --vault-address=0x6E321256BE0ABd2726A234E8dBFc4d3caf255AE0

Functions#

init([id, name, strategy_file, state_file, ...])

Initialise a strategy.