/v1/book
Live order-book depth with running spread
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/coinsph-api/v1/book" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/coinsph-api/v1/book", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/coinsph-api/v1/book");
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/coinsph-api/v1/book",
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": 3854158.1,
"amount": 0.1599904
},
{
"price": 3854158.2,
"amount": 3.87e-5
},
{
"price": 3857771.5,
"amount": 0.022
},
{
"price": 3858620,
"amount": 2.45e-5
},
{
"price": 3861144,
"amount": 0.0115237
},
{
"price": 3861144.1,
"amount": 1.94e-5
},
{
"price": 3862423.5,
"amount": 1.94e-5
},
{
"price": 3864176.3,
"amount": 1.94e-5
},
{
"price": 3865624.9,
"amount": 0.3201999
},
{
"price": 3866055.2,
"amount": 1.94e-5
},
{
"price": 3866175.8,
"amount": 1.94e-5
},
{
"price": 3867344.8,
"amount": 1.94e-5
},
{
"price": 3868131.3,
"amount": 1.94e-5
},
{
"price": 3870000,
"amount": 0.0002603
},
{
"price": 3870438.1,
"amount": 0.0177937
},
{
"price": 3870649,
"amount": 0.0177937
},
{
"price": 3870774.9,
"amount": 0.0177937
},
{
"price": 3870821.5,
"amount": 0.0177937
},
{
"price": 3870876.7,
"amount": 0.0177937
},
{
"price": 3871505.9,
"amount": 0.0177937
}
],
"bids": [
{
"price": 3851047.7,
"amount": 0.1196163
},
{
"price": 3843423,
"amount": 0.0094599
},
{
"price": 3842789.4,
"amount": 1.94e-5
},
{
"price": 3842140.8,
"amount": 2.73e-5
},
{
"price": 3841928.5,
"amount": 1.94e-5
},
{
"price": 3841428,
"amount": 1.94e-5
},
{
"price": 3838659.8,
"amount": 0.3647
},
{
"price": 3838232,
"amount": 1.94e-5
},
{
"price": 3837514.2,
"amount": 1.94e-5
},
{
"price": 3834260.7,
…