/v1/momentum
One commodity multi-horizon returns, MA position and trend regime
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/commoditymomentum-api/v1/momentum" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/commoditymomentum-api/v1/momentum", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/commoditymomentum-api/v1/momentum");
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/commoditymomentum-api/v1/momentum",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"key": "gold",
"name": "Gold",
"note": "returns_pct are trailing price changes over 1 week, 1 month, 3 months, 6 months and a ~1y (ytd proxy) horizon. momentum_score blends the 1w-6m returns. regime combines the score with the 50/200-day moving-average position. Not financial advice.",
"group": "metals",
"price": 4231.7998,
"regime": "downtrend",
"source": "Yahoo Finance",
"symbol": "GC=F",
"currency": "USD",
"above_ma50": false,
"above_ma200": false,
"returns_pct": {
"1m": -9.92,
"1w": -2.43,
"3m": -16.24,
"6m": 0.84,
"ytd_proxy": 25.17
},
"momentum_score": -6.94
},
"meta": {
"timestamp": "2026-06-12T10:35:26.034Z",
"request_id": "0485b9a5-b319-493f-91a7-64382f562ed6"
},
"status": "ok",
"message": "Momentum retrieved successfully",
"success": true
}