Aller au contenu
GET /v1/market

One market's full state by ticker

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/dydx-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/dydx-api/v1/market" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dydx-api/v1/market", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dydx-api/v1/market");
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/dydx-api/v1/market",
    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": {
        "source": "dYdX",
        "status": "ACTIVE",
        "ticker": "BTC-USD",
        "trades_24h": 26484,
        "market_type": "CROSS",
        "oracle_price": 61360.97617,
        "open_interest": 470.5312,
        "volume_24h_usd": 94598102.89,
        "funding_apr_pct": 56.198,
        "price_change_24h": -321.83505,
        "open_interest_usd": 28872253.75,
        "price_change_24h_pct": -0.5218,
        "initial_margin_fraction": 0.02,
        "next_funding_rate_hourly": 6.4153e-5,
        "maintenance_margin_fraction": 0.012
    },
    "meta": {
        "timestamp": "2026-06-10T22:57:57.009Z",
        "request_id": "ad25a911-ef85-4296-8017-8632b1c56bcb"
    },
    "status": "ok",
    "message": "Market retrieved successfully",
    "success": true
}