/v1/trades
Recent public trades for a symbol
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/pacifica-api/v1/trades" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pacifica-api/v1/trades", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pacifica-api/v1/trades");
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/pacifica-api/v1/trades",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"count": 25,
"symbol": "BTC",
"trades": [
{
"side": "close_long",
"price": 65924,
"amount": 0.25532,
"created_at": 1781522148592,
"event_type": "fulfill_taker"
},
{
"side": "close_short",
"price": 65924,
"amount": 0.25532,
"created_at": 1781522148592,
"event_type": "fulfill_maker"
},
{
"side": "close_long",
"price": 65924,
"amount": 0.30049,
"created_at": 1781522148592,
"event_type": "fulfill_taker"
},
{
"side": "close_short",
"price": 65924,
"amount": 0.30049,
"created_at": 1781522148592,
"event_type": "fulfill_maker"
},
{
"side": "close_long",
"price": 65924,
"amount": 0.33794,
"created_at": 1781522148592,
"event_type": "fulfill_taker"
},
{
"side": "close_short",
"price": 65924,
"amount": 0.33794,
"created_at": 1781522148592,
"event_type": "fulfill_maker"
},
{
"side": "close_long",
"price": 65924,
"amount": 0.3753,
"created_at": 1781522148592,
"event_type": "fulfill_taker"
},
{
"side": "close_short",
"price": 65924,
"amount": 0.3753,
"created_at": 1781522148592,
"event_type": "fulfill_maker"
},
{
"side": "close_long",
"price": 65924,
"amount": 0.35429,
"created_at": 1781522148592,
"event_type": "fulfill_taker"
},
{
"side": "close_short",
"price": 65924,
"amount": 0.35429,
"created_at": 1781522148592,
"event_type": "fulfill_maker"
},
{
"side": "close_short",
"price": 65922,
"amount": 0.02131,
"created_at": 1781522146415,
"event_type": "fulfill_taker"
},
{
"side": "open_short",
"price": 65922,
"amount": 0.02131,
"created_at": 1781522146415,
"event_type": "fulfill_maker"
},
{
"side": "close_short",
"price": 65914,
"amount": 0.00023,
"created_at": 1781522146415,
"event_type": "fulfill_taker"
…