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

The docker is the program that runs strategies: live strategies run on a docker, not on the FMZ website. The docker talks to the platform, starts and stops strategy processes and sends logs back; every request a strategy makes to an exchange also leaves from the docker's machine. The docker runs on your own server (or a server rented with one click), so a network failure of the platform website does not affect the live robots already running on it.

Supported systems

Only 64-bit builds are released: Linux (x86_64, ARM64), macOS (Intel, Apple Silicon) and Windows (x64, ARM64, plus a GUI version). 32-bit systems are not supported.

Data directory

All docker data is in the logs directory under the working directory (the startup directory by default, or the one given with -w):

  • logs/storage/<robot ID>/<robot ID>.db3: the robot database (SQLite) holding logs, profit, charts, the status bar and _G() data; it can be opened with any SQLite tool.
  • logs/storage/<robot ID>/stdout.log, stderr.log: standard output and standard error of the strategy process.
  • logs/docker.log: the docker's own log.
  • logs/docker.pid: the docker's identity; keep it and the platform gives the docker its old ID back after a restart.

To put the robot directories on another disk, set the environment variable QUANT_ROBOT_LOG_DIR before starting the docker; it replaces logs/storage as the parent of the robot directories.

Network proxy

The docker does not read the operating system's proxy settings. Environment variables such as HTTP_PROXY, HTTPS_PROXY, ALL_PROXY (and NO_PROXY) in the docker process's environment apply to the HTTP requests a strategy makes (HttpQuery and exchange REST calls), but not to WebSocket connections. To reach an exchange through a proxy, the recommended ways are:

  • set a proxy on the exchange object in the strategy with exchange.SetProxy;
  • or use a transparent proxy that takes over traffic at the network layer (such as Clash in TUN mode), which needs no docker configuration.

In this sectionRead the whole section

NameDescription
Deploy Docker (3)Rent a server on the platform with one click, or deploy it manually on your own device.
Command-Line OptionsStartup options of the command-line docker program robot and the format of its configuration file robot.conf.
Live Trading Data MigrationEach live robot's data is in logs/storage/ / under the docker's working directory (the database .db3, stdout.log, stderr.log and so on).
Docker MonitorOn the docker management page, Docker Monitor can be enabled from the actions of the docker list or of the docker details.