Type/to search
Welcome to FMZ Quant Trading Platform
Programming Languages
JavaScript
TypeScript
Python
C++
MyLanguage
PINE Language
Blockly Visual Programming
Workflow
Key Security
Live Trading
Strategy Library
Docker
Deploy Docker
One-Click Docker Rental
Manual Deployment of Bot
Docker Operation Precautions
Global IP Address Specification
Command Line Parameters for Bot Program
Live Trading Data Migration
Docker Monitor
Exchange
Strategy Editor
Backtesting System
Strategy Entry Functions
Strategy Framework and API Functions
Template Library
Strategy Parameters
Interactive Controls
Options Trading
C++ Strategy Writing Guide
JavaScript Strategy Writing Guide
Web3
Built-in Libraries
Extended API Interface
MCP Service
Trading Terminal
Data Explorer
Alpha Factor Analysis Tool
General Protocol
Debugging Tool
Remote Editing
Import and Export of Complete Strategies
Multi-language Support
Live Trading and Strategy Grouping
Live Trading Display
Strategy Sharing and Renting
Live Trading Message Push
Common Causes of Live Trading Errors and Abnormal Exits
Exchange-Specific Notes

The NewRobot method is used to create a live trading bot under the FMZ Quant Trading Platform account corresponding to the API KEY in the request.

Returns

json
{ "code":0, "data":{ "result":591988, "error":null } }
  • result: Successfully created, returns the live trading ID.

Arguments

NameTypeRequiredDescription

settings

JSON Object

Yes

Live trading configuration parameters. The settings parameter format is as follows:

json
{ "appid":"test", "args":[], "exchanges":[ {"pair":"SOL_USDT","pid":123} ], "group":123, "name":"test", "node":123, "period":60, "strategy":123 }
  • group: Specify the live trading group.
  • args: Strategy parameters, empty array if the strategy has no parameters.
  • exchanges: Exchange object configuration, refer to the RestartRobot interface.

Remarks

Sensitive information such as "meta":{"AccessKey": "123", "SecretKey": "123"} configured in the eid of the settings parameter will not be stored by the FMZ Quant Trading Platform. This data will be directly forwarded to the docker program, so this information must be configured each time a live trading bot is created or restarted.

When creating a live trading bot using a general protocol exchange object, the exchanges property can use the following settings when configuring the settings parameter:

json
{ "eid": "Exchange", "label": "test", "pair": "ETH_BTC", "meta": { "AccessKey": "123", "SecretKey": "123", "Front": "http://127.0.0.1:6666/test" } }

The label property is used to set a label for the current general protocol connected exchange object, which can be retrieved in the strategy using the exchange.GetLabel() function.