/v1/asset
One instrument 52-week range detail
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}