/v1/dxy
US Dollar Index from its 6 components
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/currencyindex-api/v1/dxy" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/currencyindex-api/v1/dxy", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/currencyindex-api/v1/dxy");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/currencyindex-api/v1/dxy",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "Official ICE US Dollar Index = 50.14348112 x EURUSD^-0.576 x USDJPY^0.136 x GBPUSD^-0.119 x USDCAD^0.091 x USDSEK^0.042 x USDCHF^0.036. Negative exponents are pairs quoted as XXX/USD.",
"index": "USDX",
"value": 104.3314,
"source": "CURRENCY-INDEX",
"constant": 50.14348112,
"components": [
{
"pair": "EUR/USD",
"rate": 1.08,
"exponent": -0.576
},
{
"pair": "USD/JPY",
"rate": 150,
"exponent": 0.136
},
{
"pair": "GBP/USD",
"rate": 1.27,
"exponent": -0.119
},
{
"pair": "USD/CAD",
"rate": 1.37,
"exponent": 0.091
},
{
"pair": "USD/SEK",
"rate": 10.5,
"exponent": 0.042
},
{
"pair": "USD/CHF",
"rate": 0.91,
"exponent": 0.036
}
]
},
"meta": {
"timestamp": "2026-06-11T07:49:21.538Z",
"request_id": "90a8ca4d-0c61-45f8-b00c-096c23b72247"
},
"status": "ok",
"message": "Dollar index computed",
"success": true
}