prepare_docker_env#

tradeexecutor.cli.prepare_docker_env module.

Module description#

Prepare a Docker .env file for a strategy.

To run this script standalone:

.. code-block:: shell

source ~/secrets.env prepare-docker-env < env/pancake-eth-usd-sma.env > ~/pancake-eth-usd-sma-final.env

Functions#

app()

Creates .env file for a trade-executor Docker container.

check_required_live_trading_vars(env, ...)

Check that we have required

filter_config(config)

Because we are reading full host OS environment, we get a lot of env vars we do not want to pass.

main()

merge_secrets(public, secret)

write_config(out, config)