/v1/orderbook
Live DEX order book vs XLM or a counter asset
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/stellarasset-api/v1/orderbook" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stellarasset-api/v1/orderbook", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stellarasset-api/v1/orderbook");
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/stellarasset-api/v1/orderbook",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"asks": [
{
"price": 5.3724769,
"amount": 560.6832186
},
{
"price": 5.3753222,
"amount": 0.1977219
},
{
"price": 5.3774699,
"amount": 1.5186144
},
{
"price": 5.3783248,
"amount": 929.6575
},
{
"price": 5.3783303,
"amount": 0.2348009
},
{
"price": 5.3783827,
"amount": 929.6475
},
{
"price": 5.3799249,
"amount": 39.3412946
},
{
"price": 5.3809497,
"amount": 5
},
{
"price": 5.3831048,
"amount": 917.6521787
},
{
"price": 5.3832323,
"amount": 523.84884
}
],
"bids": [
{
"price": 5.3663269,
"amount": 5000
},
{
"price": 5.3662693,
"amount": 5000
},
{
"price": 5.3661225,
"amount": 4476.9351424
},
{
"price": 5.3661199,
"amount": 8000
},
{
"price": 5.3661196,
"amount": 4822.0633423
},
{
"price": 5.3635095,
"amount": 226.8538222
},
{
"price": 5.3613617,
"amount": 219.7724628
},
{
"price": 5.3599381,
"amount": 5000
},
{
"price": 5.3599378,
"amount": 2399.9999996
},
{
"price": 5.3574809,
"amount": 1600
}
],
"note": "Live order book for the asset against the counter asset (XLM by default) on Stellar's built-in DEX. price is counter-per-selling; best_bid/best_ask/spread summarize the top of book.",
"buying": "XLM",
"source": "Stellar Horizon",
"spread": 0.006149999999999878,
"selling": "USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"best_ask": 5.3724769,
"best_bid": 5.3663269,
"spread_pct": 0.11447233956464063
},
"meta": {
"timestamp": "2026-06-14T08:04:02.729Z",
"request_id": "1c195bf9-6abd-4fa7-be60-07c54e30753a"
},
"status": "ok",
"message": "Order book retrieved successfully",
"success": true
}