Type/to search
Getting Started
Platform Basics
Exchange
Docker
Deploy Docker
Command-Line Options
Live Trading Data Migration
Docker Monitor
Strategy Library
Live Trading
Trading Terminal
Account and Billing
Writing Strategies
Development Tools
Backtesting System
Advanced Topics
Data and Research
Extended API Interface

Startup options of the command-line docker program robot and the format of its configuration file robot.conf. Common ways to start it:

bash
./robot -s node.fmz.com/123456 # prompts for the password (not echoed) ./robot node.fmz.com/123456 # short form: robot address [password] ./robot -c robot.conf # read options from a configuration file ./robot -v # show the version

The address and account UID are shown on the docker deployment page.

Options
OptionDescription
-s addressPlatform address like node.fmz.com/123456 (123456 is the account UID); a ws:// or wss:// prefix is allowed.
-p passwordAccount password. Avoid: it stays in shell history and the process list. Omit to be prompted, or use the config file.
-n nameDocker name, shown on the platform's docker page.
-w dirWorking directory. logs (robot data, docker log, identity file) lives under it.
-c fileConfiguration file; format below.
-u userLinux/macOS only: run strategy processes as this system user; the docker itself must run as root. Ignored with -i.
-I IPLocal outbound IP for both the platform connection and the strategies' exchange connections; see below.
-i imageLinux/macOS only: run each strategy process in its own container from this Docker image (Docker must be running).
-e pathWith -i: path of the executable inside the container.
-f JSONWith -i: Docker container settings, as inline JSON or @path to read them from a file.
-H addressWith -i: address the container uses to connect back to the host.
-vvVerbose log (including the messages exchanged with the platform); off by default to keep logs small.
-d DNSThe old custom DNS option; still accepted but ignored, as the docker always uses the system resolver.
-v, -V, --versionPrint version and build information and exit.
-h, --helpPrint usage.
--ctl-stdinFor service wrappers: read control commands from stdin (password first if no -p); stop or EOF shuts down gracefully.

Options that take a value can also be written as -option=value, e.g. -n=server01. An invalid option prints the usage and exits.

Configuration file robot.conf

One key=value per line; the key is the option name without - (s p n w u I d i e f H vv), and lines starting with # are comments:

ini
# robot.conf s=node.fmz.com/123456 p=your-password n=server01 vv=true
  • Give the file with -c; without -c and without an address, robot.conf in the startup directory is loaded automatically if present.
  • When an option is given both on the command line and in the file, the command line wins.
  • A key is matched as written first and then in lower case, so only I (outbound IP) and i (Docker image) are case-sensitive; the other keys (e.g. S=) work in either case.
  • The configuration file path is resolved relative to the startup directory (before -w changes directory); -f @file is read after -w changes directory, so a relative path is resolved against the working directory.
  • The file holds your password, so make it readable only by you (chmod 600 robot.conf).
Pinning the outbound IP (-I)

When the server has several IP addresses and the exchange API key is whitelisted for one of them, pin the outbound IP with -I, e.g. ./robot -s node.fmz.com/123456 -I 192.168.1.100. The connection to the platform and the strategies' connections to exchanges then leave from that address. With -i container isolation the container's network may not have that address; in that case let the container use the host network.

The Windows GUI version has no IP setting; use the command-line version when you need to pin the outbound IP. The GUI version accepts only -s, -p and -n, which prefill the window; when both -s and -p are given it starts automatically.