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


Export the configuration of the trade executor.

The main purpose of this command is to be able to transfer the trade executor state anf configuration to a debugging environment. It will print out the current environment variable configuration to stdout.

The export command only works on Dockerised trade-executor instances where all options are passed as environment variables.

Export all environment variables configured for this executor. This includes associated private keys, so it is not safe to give this export to anyone.

The export is in bash shell script source format.

Besides the settings export, you need to copy over the state file and Python strategy module, and you have encapsulated everything a trade executor takes as inputs.