Vai al contenuto
GET /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.

Intestazioni personalizzate (facoltative)
api.oanor.com/hibachi-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/hibachi-api/v1/trades" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hibachi-api/v1/trades", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hibachi-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/hibachi-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/USDT-P",
        "trades": [
            {
                "side": "Sell",
                "size": 0.0001686253,
                "price": 65956.5,
                "timestamp": 1781522154
            },
            {
                "side": "Buy",
                "size": 0.0016050993,
                "price": 65951.7,
                "timestamp": 1781522138
            },
            {
                "side": "Buy",
                "size": 0.0007583025,
                "price": 65949.9,
                "timestamp": 1781522138
            },
            {
                "side": "Buy",
                "size": 0.0002700739,
                "price": 65951.4,
                "timestamp": 1781522138
            },
            {
                "side": "Buy",
                "size": 0.0001805964,
                "price": 65947.7,
                "timestamp": 1781522138
            },
            {
                "side": "Buy",
                "size": 0.001184788,
                "price": 65947.8,
                "timestamp": 1781522138
            },
            {
                "side": "Buy",
                "size": 0.0002300369,
                "price": 65947.6,
                "timestamp": 1781522138
            },
            {
                "side": "Buy",
                "size": 0.000799,
                "price": 65935.3,
                "timestamp": 1781522128
            },
            {
                "side": "Buy",
                "size": 0.000437,
                "price": 65935.3,
                "timestamp": 1781522128
            },
            {
                "side": "Sell",
                "size": 0.0003034892,
                "price": 65936.2,
                "timestamp": 1781522121
            },
            {
                "side": "Buy",
                "size": 2.06465e-5,
                "price": 65942.5,
                "timestamp": 1781522119
            },
            {
                "side": "Sell",
                "size": 0.0003034586,
                "price": 65942.8,
                "timestamp": 1781522119
            },
            {
                "side": "Sell",
                "size": 0.0003381388,
                "price": 65945.2,
                "timestamp": 1781522119
            },
            {
                "side": "Sell",
                "size": 0.0014218514,
                "price": 65945.2,
                "timestamp": 1781522119
            },
            {
                "side": "Buy",
                "size": 0.0003034852,
                "price": 65944.1,
                "timestamp": 1781522112
            },
            {
                "side": "Buy",
                "size": 0.0003381747,
                "price": 65944.1,
                "timestamp": 1781522112
            },
            {
                "side": "Buy",
                "size": 0.00142215,
                "price": 65944.2,
                "timestamp": 1781522112
          
…