1. Configure the URL and token
The cURL examples useAPI_BASE and MT5_API_TOKEN. Load the token from your backend’s
secret manager; do not include it in the repository.
2. Check availability
{"status":"ok"}. The second checks the MT5 connection
and requires a specific permission. If it fails, resolve the error before continuing.
3. Verify the account
This Python example prompts for the password without displaying it or placing it in a command argument. It requireshttpx (python -m pip install httpx).
4. Query before trading
123456 with the verified login and EURUSD with your broker’s symbol.
To submit a trade, continue with the trading workflow.
