Request & response format
-
Requests and responses are JSON. Send
Content-Type: application/jsonon requests with a body. -
Success responses are wrapped:
{ "success": true, "data": { /* payload */ }, "message": "optional human string" }datais omitted for actions that return nothing (e.g. delete, close). Some endpoints returndataas an array. -
Error responses:
{ "success": false, "error": "Human-readable reason", "errorCode": 1234 }errorCodeis present only for some broker/MT5-level failures.