NewRobot
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
| Name | Type | Required | Description |
settings | JSON Object | Yes | Live trading configuration parameters. The
|
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.