/v1/markets
Every perp market with oracle price, funding, open interest, volume, margins
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/dydx-api/v1/markets" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dydx-api/v1/markets", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dydx-api/v1/markets");
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/markets",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"count": 100,
"source": "dYdX",
"markets": [
{
"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
},
{
"status": "ACTIVE",
"ticker": "ETH-USD",
"trades_24h": 5481,
"market_type": "CROSS",
"oracle_price": 1617.288739,
"open_interest": 5906.975,
"volume_24h_usd": 12173705.56,
"funding_apr_pct": -12.0903,
"price_change_24h": -23.268771,
"open_interest_usd": 9553284.15,
"price_change_24h_pct": -1.4183,
"initial_margin_fraction": 0.02,
"next_funding_rate_hourly": -1.38017e-5,
"maintenance_margin_fraction": 0.012
},
{
"status": "ACTIVE",
"ticker": "SOL-USD",
"trades_24h": 1574,
"market_type": "CROSS",
"oracle_price": 62.81004125,
"open_interest": 45197.7,
"volume_24h_usd": 3883177.64,
"funding_apr_pct": -26.6179,
"price_change_24h": -2.070366,
"open_interest_usd": 2838869.4,
"price_change_24h_pct": -3.191,
"initial_margin_fraction": 0.05,
"next_funding_rate_hourly": -3.03858e-5,
"maintenance_margin_fraction": 0.03
},
{
"status": "ACTIVE",
"ticker": "AVAX-USD",
"trades_24h": 662,
"market_type": "CROSS",
"oracle_price": 6.34442955,
"open_interest": 18239.3,
"volume_24h_usd": 952020.68,
"funding_apr_pct": 0,
"price_change_24h": -0.270858,
"open_interest_usd": 115717.95,
"price_change_24h_pct": -4.0944,
"initial_margin_fraction": 0.1,
"next_funding_rate_hourly": 0,
"maintenance_margin_fraction": 0.05
},
{
"status": "ACTIVE",
"ticker": "HYPE-USD",
"trades_24h": 526,
"market_type": "CROSS",
"oracle_price": 53.387129,
"open_interest": 3006.8,
"volume_24h_usd": 167164.12,
…