Ir al contenido
GET /v1/trades

Recent trades for a market

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/backpack-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
            },
 
…