/v1/asset
One instrument 52-week range detail
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/fiftytwoweek-api/v1/asset" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fiftytwoweek-api/v1/asset", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fiftytwoweek-api/v1/asset");
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/fiftytwoweek-api/v1/asset",
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": {
"key": "gold",
"note": "range_position is where the current price sits between the 52-week low (0) and high (100). pct_from_high is how far below the high; pct_from_low how far above the low. Computed from one year of daily closes.",
"class": "commodities",
"label": "Gold",
"price": 386.32,
"source": "Yahoo Finance",
"status": "mid range",
"symbol": "GLD",
"week52_low": 300.96,
"week52_high": 495.9,
"pct_from_low": 28.36,
"pct_from_high": -22.1,
"range_position": 43.8
},
"meta": {
"timestamp": "2026-06-12T10:35:17.728Z",
"request_id": "a16157ec-8e7d-4bf8-a337-b19ad04d4961"
},
"status": "ok",
"message": "Asset retrieved successfully",
"success": true
}