

/api/v1/ml/{currency}ML predictions for a currency: ATR (volatility) forecast rows and macro model output. USD maps to the DXY macro series. Limited to the last 7 days. Need more history? Contact us for a business API.
| Name | In | Type | Req. | Description |
|---|---|---|---|---|
| currency | path | string | yes | EUR, JPY, GBP, AUD, CAD, CHF, NZD, USD. |
curl -H "Authorization: Bearer afx_live_xxx" \
"https://www.analytics-fx.com/api/v1/ml/aud"{
"apiVersion": "v1",
"data": {
"currency": "EUR", "macroKey": "EUR",
"atr": [ { "date": "2026-06-20", "prediction": 0.0072, "actual": 0.0069, "currency": "EUR" } ],
"macro": [ { "horizon_days": "5", "prediction": 0.0031, "predict_date": "2026-06-20", "price_csv": "EUR" } ]
},
"meta": { "requestId": "req_ml01", "credits": { "cost": 1, "remaining": 982 } }
}