/v1/trades
Recent public trades for a contract
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/apex-api/v1/trades" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/apex-api/v1/trades", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/apex-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/apex-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": "BTCUSDT",
"trades": [
{
"id": "57f45567-29fc-5aee-8c27-b88740a24b2a",
"side": "Buy",
"size": 0.091,
"price": 65896.1,
"timestamp": 1781522133599
},
{
"id": "84603434-1d0f-5031-8578-220aed3d3c80",
"side": "Sell",
"size": 0.091,
"price": 65907.1,
"timestamp": 1781522135504
},
{
"id": "b57d3d54-74cb-5be7-b25c-fd2e0e70d273",
"side": "Buy",
"size": 0.173,
"price": 65909.6,
"timestamp": 1781522136648
},
{
"id": "548c1efb-d5d4-5f06-8ed7-c825cc0c6761",
"side": "Buy",
"size": 0.173,
"price": 65920.2,
"timestamp": 1781522137597
},
{
"id": "1a3b470a-a333-5420-b504-c60bdb09471d",
"side": "Buy",
"size": 0.015,
"price": 65942.7,
"timestamp": 1781522138524
},
{
"id": "1d9078f1-140f-5df7-9808-8ebe2970103e",
"side": "Sell",
"size": 0.109,
"price": 65943,
"timestamp": 1781522139048
},
{
"id": "02ca283a-cf0b-5d9f-96fd-079adf9f20fe",
"side": "Sell",
"size": 0.155,
"price": 65943,
"timestamp": 1781522140097
},
{
"id": "58beea24-2183-590c-a236-8651b125183c",
"side": "Buy",
"size": 0.1,
"price": 65943.6,
"timestamp": 1781522141047
},
{
"id": "8923ec6d-140e-56ca-9dec-79269c8764b7",
"side": "Sell",
"size": 0.127,
"price": 65935.3,
"timestamp": 1781522142250
},
{
"id": "079e5544-03b1-5707-84a4-1239a42babbf",
"side": "Buy",
"size": 0.1,
"price": 65935.9,
"timestamp": 1781522142552
},
{
"id": "b3ec07be-a951-5a3b-9f22-66ff31042149",
"side": "Buy",
"size": 0.155,
"price": 65940.8,
"timestamp": 1781522143547
},
{
"id": "2f5e21ce-7cc2-5ebb-9512-5b2a8cbc26a9",
"side": "Buy",
"size": 0.146,
"price": 65940.9,
"timestamp": 1781522144648
},
{
"id": "f1facc93-43ef-574f-b470-c90c7b930765",
"side": "Buy",
"size": 0.164,
"pri
…