/v1/markets
List every market with id, type and fees
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/lighter-api/v1/markets" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lighter-api/v1/markets", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lighter-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/lighter-api/v1/markets",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"count": 198,
"venue": "lighter",
"markets": [
{
"status": "active",
"symbol": "STRC",
"maker_fee": 0,
"market_id": 156,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "USDCHF",
"maker_fee": 0,
"market_id": 99,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "FIL",
"maker_fee": 0,
"market_id": 103,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "AVAX",
"maker_fee": 0,
"market_id": 9,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "APEX",
"maker_fee": 0,
"market_id": 86,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "DRAM",
"maker_fee": 0,
"market_id": 195,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "SKR",
"maker_fee": 0,
"market_id": 130,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "TAO",
"maker_fee": 0,
"market_id": 13,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "EURUSD",
"maker_fee": 0,
"market_id": 96,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "MEGA",
"maker_fee": 0,
"market_id": 94,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "BABA",
"maker_fee": 0,
"market_id": 177,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "WTI",
"maker_fee": 0,
"market_id": 145,
"taker_fee": 0,
"market_type": "perp"
},
{
"status": "active",
"symbol": "FOGO",
…