/v1/orderbook
Top of order book
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/gemini-api/v1/orderbook" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gemini-api/v1/orderbook", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gemini-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/gemini-api/v1/orderbook",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"asks": [
{
"price": 1655.49,
"amount": 38.524788
},
{
"price": 1655.83,
"amount": 0.1151
},
{
"price": 1656.04,
"amount": 0.1151
},
{
"price": 1656.37,
"amount": 30.88563
},
{
"price": 1656.38,
"amount": 0.0493
},
{
"price": 1656.54,
"amount": 0.0658
},
{
"price": 1656.55,
"amount": 0.0493
},
{
"price": 1656.85,
"amount": 8.206406
},
{
"price": 1656.86,
"amount": 0.1151
},
{
"price": 1656.87,
"amount": 7.442
}
],
"bids": [
{
"price": 1655.48,
"amount": 0.1151
},
{
"price": 1655.29,
"amount": 0.730175
},
{
"price": 1655.16,
"amount": 0.0493
},
{
"price": 1655.03,
"amount": 0.0658
},
{
"price": 1654.95,
"amount": 1.045237
},
{
"price": 1654.69,
"amount": 0.0658
},
{
"price": 1654.67,
"amount": 0.0493
},
{
"price": 1654.52,
"amount": 0.0658
},
{
"price": 1654.5,
"amount": 0.0493
},
{
"price": 1654.4,
"amount": 2.190525
}
],
"source": "Gemini",
"spread": 0.01,
"symbol": "ETHUSD",
"best_ask": 1655.49,
"best_bid": 1655.48,
"spread_pct": 0.0006
},
"meta": {
"timestamp": "2026-06-09T20:24:38.840Z",
"request_id": "5b0f84a7-a02d-4692-b125-382681332318"
},
"status": "ok",
"message": "Order book retrieved successfully",
"success": true
}