Live Trading
As opposed to a backtest, a live robot is a strategy program instance that really interacts with an exchange (fetching market data, querying positions, placing and canceling orders, etc.). An instance connected to the exchange's production environment is a live robot, and so is one connected to the exchange's simulation environment (many exchanges offer a test environment).
Creating a live robot
On the robot creation page, choose the strategy, the docker and the exchange accounts, then create the robot. Three things must be ready beforehand:
- A strategy: click "New Strategy" in the Strategy Library, write it and save it.
- An online docker: click "Deploy Docker" on the Docker page (see
Docker). - An exchange account: click "Add Exchange" on the Exchange page and configure it (see
Exchange).
Live robots are billed by the hour and cannot start without enough balance (see Live Robot Billing and Top-up).
Robot monitoring
On the live trading page, click "Monitor" in the actions column of a running robot to enable monitoring. Once enabled, when the robot exits for any reason other than a manual operation, the platform sends a notification according to the push settings (App, email, Telegram; never to the WebHook).
Robot database
For robot ID 123456, the database file is logs/storage/123456/123456.db3 (SQLite) under the working directory of the docker running it, with these tables:
- chart: chart data.
- cfg: the latest state such as the status bar content and the chart configuration.
- kvdb: data persisted with the
_G()function. - log: robot logs.
- profit: profit data.
The same directory also holds the strategy process's standard output stdout.log and standard error stderr.log.
To let other people view and operate some of your robots, use sub-accounts (see Sub-accounts).
In this sectionRead the whole section
| Name | Description |
| Grouping | Click the Group Management button on the right of the "Live Trading" page or the "Strategy Library" page to group robots or strategies; group names are up to yo… |
| Live Trading Observation | Click the "Public" button of a robot in the robot list on the Live Trading page to let others watch it. |
| Live Trading Message Push | A live robot can push log lines as messages to the mobile app, email, Telegram or a WebHook; enable the channels on the push settings page. |
| Common Causes of Live Trading Errors and Abnormal Exits | When a robot will not start, reports errors or exits abnormally, check the causes below by category. |