Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/cryptomacro-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/cryptomacro-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cryptomacro-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cryptomacro-api/v1/meta");
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/cryptomacro-api/v1/meta",
    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": {
        "note": "coin is BTC or ETH. window is 20-365 days (default 90). Correlations use daily log returns aligned on common trading days (stocks trade weekdays; crypto 24/7). Read fresh per call, nothing cached.",
        "coins": [
            "BTC",
            "ETH"
        ],
        "source": "Binance daily candles + Yahoo Finance chart (S&P 500, Nasdaq 100, gold, US dollar index), live",
        "service": "cryptomacro-api",
        "endpoints": {
            "GET /v1/beta": "Beta to the S&P 500 with correlation and R-squared (coin=BTC, window=90).",
            "GET /v1/meta": "This document.",
            "GET /v1/correlation": "Correlation to S&P 500, Nasdaq, gold and the dollar, with a risk-asset/hedge verdict (coin=BTC, window=90)."
        },
        "benchmarks": [
            "sp500",
            "nasdaq",
            "gold",
            "dxy"
        ],
        "description": "Crypto-to-macro correlation — whether crypto trades as a risk asset or a hedge, by how closely a coin moves with stocks, gold and the dollar (no key, nothing stored). correlation returns a coin's return correlation to the S&P 500, Nasdaq 100, gold and the US dollar index over a window, each with a plain read and an overall verdict. beta returns the coin's beta to the S&P 500. The cross-asset / crypto-versus-traditional-markets cut — distinct from the crypto-to-crypto correlation API, the realised-volatility and price APIs.",
        "upstream_status": "ok",
        "btc_sp500_correlation": 0.47
    },
    "meta": {
        "timestamp": "2026-06-12T10:35:31.159Z",
        "request_id": "a77ac887-2683-4df0-9f25-51a27e093ca6"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}