PluginRun
The PluginRun method is used to call the debugging tool functionality of the FMZ Quant Trading Platform; only JavaScript language is supported.
Returns
json
{
"code": 0,
"data": {
"result": "{\"logs\":[{\"PlatformId\":\"\",\"OrderId\":\"0\",\"LogType\":5,\"Price\":0,\"Amount\":0,\"Extra\":\"Hello FMZ\",\"Currency\":\"\",\"Instrument\":\"\",\"Direction\":\"\",\"Time\":1732267473108}],\"result\":\"\"}",
"error": null
}
}
- result: Test result data returned after the debugging tool successfully executes the passed JavaScript code.
Arguments
| Name | Type | Required | Description |
settings | JSON object | Yes | Setting parameters in the debugging tool, the
|
Remarks
{"eid": "OKEX", "pair": "ETH_BTC", "meta" :{"AccessKey": "123", "SecretKey": "123"}}
{"eid": "Huobi", "pair": "BCH_BTC", "meta" :{"AccessKey": "123", "SecretKey": "123"}}
For the exchanges attribute in settings, only one needs to be set when calling the PluginRun method (only one exchange object is supported when using the debugging tool page). Setting 2 exchange objects in settings will not cause an error, but accessing the second exchange object in the code will cause an error.