Ir al contenido
GET /v1/ranking

Cross-asset board ranked by relative strength vs the S&P 500 with leaders/laggards

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/relativestrength-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/relativestrength-api/v1/ranking" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/relativestrength-api/v1/ranking", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/relativestrength-api/v1/ranking");
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/relativestrength-api/v1/ranking",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "note": "Relative strength = asset return minus the S&P 500's return over 1, 3 and 6 months; rs_score blends them. Positive = beating the market (a leader); negative = lagging. Ranked by rs_score, leaders first. rs_trend improving = short-term RS above longer-term (gaining leadership).",
        "class": "sector",
        "assets": [
            {
                "key": "technology",
                "rank": 1,
                "class": "sector",
                "label": "Technology",
                "rs_pct": {
                    "1m": 4.63,
                    "3m": 22.15,
                    "6m": 15.76
                },
                "rs_score": 14.18,
                "rs_trend": "fading"
            },
            {
                "key": "energy",
                "rank": 2,
                "class": "sector",
                "label": "Energy",
                "rs_pct": {
                    "1m": -0.72,
                    "3m": -11.44,
                    "6m": 16.98
                },
                "rs_score": 1.61,
                "rs_trend": "improving"
            },
            {
                "key": "industrials",
                "rank": 3,
                "class": "sector",
                "label": "Industrials",
                "rs_pct": {
                    "1m": 0.52,
                    "3m": -4.77,
                    "6m": 6.27
                },
                "rs_score": 0.67,
                "rs_trend": "improving"
            },
            {
                "key": "materials",
                "rank": 4,
                "class": "sector",
                "label": "Materials",
                "rs_pct": {
                    "1m": -1.71,
                    "3m": -7.66,
                    "6m": 10.03
                },
                "rs_score": 0.22,
                "rs_trend": "improving"
            },
            {
                "key": "real_estate",
                "rank": 5,
                "class": "sector",
                "label": "Real Estate",
                "rs_pct": {
                    "1m": 0.82,
                    "3m": -4.17,
                    "6m": 2.9
                },
                "rs_score": -0.15,
                "rs_trend": "improving"
            },
            {
                "key": "consumer_staples",
                "rank": 6,
                "class": "sector",
                "label": "Consumer Staples",
                "rs_pct": {
                    "1m": 1.04,
                    "3m": -9.55,
                    "6m": 1.32
                },
                "rs_score": -2.4,
                "rs_trend": "improving"
            },
            {
                "key": "health_care",
                "rank": 7,
                "class": "sector",
                "label": "Health Care",
                "rs_pct": {
                    "1m": 5.71,
                    "3m": -8.15,
                    "6m": -5.26
                },
                "rs_score": 
…