Aller au contenu
GET /v1/basis

A coin spot-perp basis, premium and funding

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/cryptobasis-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/cryptobasis-api/v1/basis" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cryptobasis-api/v1/basis", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cryptobasis-api/v1/basis");
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/cryptobasis-api/v1/basis",
    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": {
        "base": "BTC",
        "symbol": "BTCUSDT",
        "basis_abs": -35.5,
        "basis_pct": -0.0565,
        "structure": "backwardation",
        "mark_price": 62827.44,
        "perp_price": 62821.2,
        "spot_price": 62856.7,
        "index_price": 62860.31,
        "funding_rate": -5.56e-6,
        "funding_8h_pct": -0.0006,
        "funding_annualized_pct": -0.61,
        "mark_index_premium_pct": -0.0523
    },
    "meta": {
        "timestamp": "2026-06-09T03:02:06.835Z",
        "request_id": "c6fe828e-4139-4bc7-88aa-b709251855ac"
    },
    "status": "ok",
    "message": "Basis retrieved successfully",
    "success": true
}