کےPluginRun
طریقہ کار کا استعمال کیا جاتا ہےڈیبگ ٹولایف ایم زیڈ کوانٹ ٹریڈنگ پلیٹ فارم کا کام۔
{
"code": 0,
"data": {
"result": "...",
"error": null
}
}
ڈیبگ ٹول میں ترتیبات کے پیرامیٹرز،settings
ترتیب، میں ٹیسٹ کوڈ شامل کریںsource
خاصیت.settings
پیرامیٹر فارمیٹ مندرجہ ذیل ہے:
# K-line period parameter, "60" indicates 60 seconds
"period": 60,
"source": "function main() {Log("Hello FMZ")}",
# The docker ID can specify which docker to run the bot on; if the value is -1, it means automatic assignment
"node" : 54913,
"exchanges": [
{"eid": "OKEX", "pair": "ETH_BTC", "meta" :{"AccessKey": "123abc", "SecretKey": "123abc"}},
{"eid": "Huobi", "pair": "BCH_BTC", "meta" :{"AccessKey": "123abc", "SecretKey": "123abc"}}
]
} ```
settings
true
JSON object
```{"eid": "OKEX", "pair": "ETH_BTC", "meta" :{"AccessKey": "123abc", "SecretKey": "123abc"}}```
```{"eid": "Huobi", "pair": "BCH_BTC", "meta" :{"AccessKey": "123abc", "SecretKey": "123abc"}}```
For the ```exchanges``` attribute in the ```settings```, the attribute only needs to be set to 1, when calling the ```PluginRun``` interface (for only one exchange object can be supported when you use the "Debug Tool" page).
No error will be reported when you set 2 exchange objects in ```settings```, but an error will be reported when the second exchange object is accessed in the code.
نیو روبوٹ
GetRobotLogs