AlgoDeltaFXDocs

Responses and errors

View .md Ask Claude Ask ChatGPT

Every endpoint returns JSON in the same envelope:

JSON
{
  "status": true,
  "msg": "Order placed",
  "data": { "ticket": 1093918439 }
}
Field Type Meaning
status boolean true if the request succeeded.
msg string Human-readable message. On failure it explains what went wrong.
data object or array The result. Its shape depends on the endpoint.

Always check status as well as the HTTP status code. A failed request returns status: false, for example a missing or invalid token:

JSON
{ "status": false, "msg": "Unauthorized", "error": "Unauthorized" }

The HTTP status for that response is 401.

Common causes of failed orders#

Symptom Likely cause Fix
Unknown or invalid symbol Broker uses a suffix (EURUSDm, EURUSD.pro) Read names from Get Symbols
Invalid volume Below minimum lot, above maximum or wrong lot step Round volume to the broker's lot step
Invalid stops SL/TP too close to price, or on the wrong side Respect the broker's stop level; SL below entry for buys
Invalid price Missing price on a pending order, or wrong side of the market See Order types
Market closed Outside the symbol's trading session Retry when the market opens
Not enough money Free margin too low for the volume Reduce volume
Unauthorized Missing or wrong token, or Bearer used on the Master API See Authentication

Last updated 2026-11-04