/v1/trades
Live trade tape
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/bitstamp-api/v1/trades" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitstamp-api/v1/trades", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitstamp-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/bitstamp-api/v1/trades",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"pair": "BTCUSD",
"count": 20,
"source": "Bitstamp",
"trades": [
{
"tid": "588301470",
"side": "sell",
"time": 1781005098,
"price": 62541.13,
"amount": 0.00028853
},
{
"tid": "588301469",
"side": "sell",
"time": 1781005098,
"price": 62541.71,
"amount": 0.00871686
},
{
"tid": "588301449",
"side": "buy",
"time": 1781005089,
"price": 62541.73,
"amount": 0.00171209
},
{
"tid": "588301448",
"side": "buy",
"time": 1781005088,
"price": 62541.73,
"amount": 0.00392066
},
{
"tid": "588301438",
"side": "sell",
"time": 1781005086,
"price": 62541.72,
"amount": 0.00023871
},
{
"tid": "588301434",
"side": "sell",
"time": 1781005086,
"price": 62556.57,
"amount": 0.00237306
},
{
"tid": "588301430",
"side": "buy",
"time": 1781005085,
"price": 62556.58,
"amount": 0.04749177
},
{
"tid": "588301429",
"side": "sell",
"time": 1781005084,
"price": 62556.57,
"amount": 0.00114516
},
{
"tid": "588301424",
"side": "sell",
"time": 1781005082,
"price": 62569.37,
"amount": 0.00016142
},
{
"tid": "588301415",
"side": "sell",
"time": 1781005082,
"price": 62569.84,
"amount": 0.21199997
},
{
"tid": "588301414",
"side": "sell",
"time": 1781005082,
"price": 62574.37,
"amount": 0.00019237
},
{
"tid": "588301413",
"side": "sell",
"time": 1781005082,
"price": 62574.37,
"amount": 0.00461679
},
{
"tid": "588301411",
"side": "buy",
"time": 1781005080,
"price": 62574.38,
"amount": 8.068e-5
},
{
"tid": "588301408",
"side": "buy",
"time": 1781005080,
"price": 62574.38,
"amount": 0.0001583
},
{
…