The NewRobot
method is used to create a live trading under the API KEY
corresponding to the FMZ Quant Trading Platform account in the request.
{
"code":0,
"data":{
"result":591988,
"error":null
}
}
The live trading configuration parameters, settings
parameters format is as follows:
{
"appid":"test",
"args":[],
"exchanges":[
{"pair":"SOL_USDT","pid":123}
],
"group":123,
"name":"test",
"node":123,
"period":60,
"strategy":123
}
RestartRobot
interface.settings true JSON object
In the configuration of eid
in the settings
parameter, "meta":{"AccessKey": "123", "SecretKey": "123"}
these sensitive information is not stored by the FMZ Quant Trading Platform. These data are forwarded to the docker program directly, so this information must be configured every time a live trading is created or restarted.
If we create a live trading exchange object using the custom protocol, when configuring the settings
parameter, we can use the following settings for the exchanges
attribute:
{
"eid": "Exchange",
"label": "test",
"pair": "ETH_BTC",
"meta": {
"AccessKey": "123",
"SecretKey": "123",
"Front": "http://127.0.0.1:6666/test"
}
}
label
attribute is to set a label for the exchange object accessed by the current custom protocol, which can be obtained by the exchange.GetLabel()
function in the strategy.