Open API
Plug GoldMind quotes, AI signals and order endpoints into your own systems.
Authentication
All user endpoints require a JWT. Sign in once and the server issues a 7-day token.
Authorization: Bearer <jwt>
Quotes — GET /api/candles.php
Params: symbol, tf (1m/5m/15m/1h/4h/1d), and limit (50-500).
curl 'https://mindaigold.com/api/candles.php?symbol=XAU_USD&tf=15m&limit=200'
Realtime Quote — GET /api/quote.php
Returns the latest tradable price used by the chart realtime fallback.
curl 'https://mindaigold.com/api/quote.php?symbol=XAU_USD'
AI Analysis — POST /api/auth/ai-proxy-k.php
Send candles and parameters, receive direction / TP / SL / rationale.
{
"symbol": "XAU_USD",
"lang": "en",
"klines": [...],
"aiQuerySettings": {"holdingPeriod":"intraday","leverage":100,"lotSize":0.1}
}
Place Order — POST /api/orders/create.php
{
"symbol": "XAU_USD",
"side": "buy",
"lots": 0.01
}
EA endpoints (called by MT5 only)
Authenticate with ?token=<ea_token>, no JWT. See mt5_ea/GoldMindBridge.mq5.
GET /api/mt5/pending_orders.php?token=...POST /api/mt5/report.php?token=...