Idempotency-Key: 16–128 characters using
ASCII letters, numbers, periods, underscores, colons, or hyphens. A UUID meets the format.
The key belongs to your token and one intent; use a different key for each opening
and closing order, even when they share an account and symbol.
Before submitting
Persist the intent, route, full body, and key. Do not generate a new key for every HTTP attempt. A retry of the same intent keeps the same route, key, and data, including price and comment.Responses when reusing a key
Permissions and account authorization are also checked when repeating a request.
A stored response is the submission response, not final execution confirmation.
Timeout, disconnection, or error after submission
- Stop automatic POST retries and mark the intent as uncertain.
- If you know the MT5 ID, query its result.
- Query account positions and orders to reconcile the state.
- Keep the key, exact body, UTC time, and identifiers for support.
- If you cannot confirm the result, request a provider review before creating a new intent that could duplicate the previous one.