Vai al contenuto
GET /v1/trades

Recent trades for a market

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/backpack-api/v1/trades" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/backpack-api/v1/trades", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/backpack-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/backpack-api/v1/trades",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "The most recent trades on one Backpack market — each with price, quantity, the taker side (buy/sell) and timestamp. Pass symbol (e.g. SOL_USDC) and limit (default 50, max 200).",
        "count": 50,
        "source": "Backpack",
        "symbol": "SOL_USDC",
        "trades": [
            {
                "id": 381196122,
                "side": "buy",
                "price": 67.45,
                "quantity": 3.56,
                "timestamp": 1781456493295,
                "quote_quantity": 240.122
            },
            {
                "id": 381196121,
                "side": "buy",
                "price": 67.45,
                "quantity": 1.8,
                "timestamp": 1781456493252,
                "quote_quantity": 121.41
            },
            {
                "id": 381196120,
                "side": "buy",
                "price": 67.47,
                "quantity": 0.01,
                "timestamp": 1781456399731,
                "quote_quantity": 0.6747
            },
            {
                "id": 381196119,
                "side": "buy",
                "price": 67.5,
                "quantity": 0.02,
                "timestamp": 1781456219731,
                "quote_quantity": 1.35
            },
            {
                "id": 381196118,
                "side": "buy",
                "price": 67.5,
                "quantity": 0.03,
                "timestamp": 1781456219731,
                "quote_quantity": 2.025
            },
            {
                "id": 381196117,
                "side": "buy",
                "price": 67.45,
                "quantity": 0.3,
                "timestamp": 1781456174489,
                "quote_quantity": 20.235
            },
            {
                "id": 381196116,
                "side": "sell",
                "price": 67.5,
                "quantity": 0.09,
                "timestamp": 1781456099144,
                "quote_quantity": 6.075
            },
            {
                "id": 381196115,
                "side": "sell",
                "price": 67.51,
                "quantity": 0.2,
                "timestamp": 1781456089635,
                "quote_quantity": 13.502
            },
            {
                "id": 381196114,
                "side": "sell",
                "price": 67.52,
                "quantity": 4.82,
                "timestamp": 1781456080759,
                "quote_quantity": 325.4464
            },
            {
                "id": 381196113,
                "side": "sell",
                "price": 67.52,
                "quantity": 1.88,
                "timestamp": 1781456080739,
                "quote_quantity": 126.9376
            },
            {
                "id": 381196112,
                "side": "sell",
                "price": 67.52,
                "quantity": 3.14,
                "timestamp": 1781456080730,
                "quote_quantity": 212.0128
            },
 
…