Type/to search
Getting Started
Welcome to FMZ Quant Trading Platform
Quick Start
Key Security
Platform Basics
Account and Billing
Live Robot Billing and Top-up
Sub-accounts
Exchange
General Protocol
Local Credential Files
Exchange-Specific Notes
Securities and Futures
Crypto
Docker
Strategy Library
Live Trading
Writing Strategies
Development Tools
Backtesting System
Advanced Topics
Data and Research
Integrations

The extended API returns this structure:

json
{ "code": 0, "data": { "result": null, "error": null } }

code is the status of the request itself:

DescriptionCode
Success0
Invalid API KEY: the AccessKey does not exist or is disabled; or a wrong secret_key in direct verification1
Invalid signature2
Nonce error: the nonce is not greater than the previous one, or differs from server time by more than 1 hour3
Invalid method: the method does not exist, is not public, or this API KEY has no permission for it4
Invalid arguments: args is not valid JSON, or the call failed5
Internal error6
The request's source IP is not in this API KEY's IP whitelist7

code 0 only means the request was accepted. The method's result is in data.result; when the method fails, data.error holds the error message (null on success). For example, with the wrong number of arguments:

json
{ "code": 0, "data": { "result": null, "error": "Params number mismatch for StopRobot: expected 1, got 0" } }