/v1/asset
One market moving-average card
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/goldencross-api/v1/asset" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/goldencross-api/v1/asset", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/goldencross-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/goldencross-api/v1/asset",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"key": "sp500",
"ma50": 721.0712,
"note": "One market's moving-average card: price, 50- and 200-day SMAs, the golden/death-cross regime, days since the last cross and how far price sits above each average.",
"class": "equities",
"label": "S&P 500",
"ma200": 685.8166,
"price": 737.76,
"trend": "bullish (50 above 200)",
"regime": "golden_cross",
"source": "Yahoo Finance",
"symbol": "SPY",
"last_cross": null,
"ma_gap_pct": 5.14,
"pct_above_ma50": 2.31,
"pct_above_ma200": 7.57,
"days_since_cross": null
},
"meta": {
"timestamp": "2026-06-12T10:35:09.089Z",
"request_id": "b745a01d-937e-46d5-b646-d63ac3ae526a"
},
"status": "ok",
"message": "Asset retrieved successfully",
"success": true
}