Zum Inhalt springen
GET /v1/trades

Recent trades for a symbol

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/coinstore-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 50,
        "symbol": "BTCUSDT",
        "trades": [
            {
                "side": "buy",
                "time": 1781522112000,
                "price": 65937.02,
                "volume": 0.000987,
                "trade_id": "235694203"
            },
            {
                "side": "buy",
                "time": 1781522112000,
                "price": 65937.04,
                "volume": 3.0e-6,
                "trade_id": "235694202"
            },
            {
                "side": "buy",
                "time": 1781522112000,
                "price": 65933.54,
                "volume": 0.000259,
                "trade_id": "235694201"
            },
            {
                "side": "buy",
                "time": 1781522112000,
                "price": 65914.45,
                "volume": 3.0e-6,
                "trade_id": "235694200"
            },
            {
                "side": "sell",
                "time": 1781522112000,
                "price": 65914.4,
                "volume": 1.3e-5,
                "trade_id": "235694199"
            },
            {
                "side": "buy",
                "time": 1781522111000,
                "price": 65914.46,
                "volume": 0.005987,
                "trade_id": "235694198"
            },
            {
                "side": "buy",
                "time": 1781522111000,
                "price": 65914.54,
                "volume": 3.0e-6,
                "trade_id": "235694197"
            },
            {
                "side": "buy",
                "time": 1781522111000,
                "price": 65914.53,
                "volume": 0.000545,
                "trade_id": "235694196"
            },
            {
                "side": "sell",
                "time": 1781522110000,
                "price": 65914.53,
                "volume": 0.001457,
                "trade_id": "235694195"
            },
            {
                "side": "buy",
                "time": 1781522110000,
                "price": 65914.35,
                "volume": 3.0e-6,
                "trade_id": "235694194"
            },
            {
                "side": "buy",
                "time": 1781522109000,
                "price": 65914.34,
                "volume": 0.000201,
                "trade_id": "235694193"
            },
            {
                "side": "sell",
                "time": 1781522109000,
                "price": 65914.52,
                "volume": 0.000607,
                "trade_id": "235694192"
            },
            {
                "side": "buy",
                "time": 1781522109000,
                "price": 65914.53,
                "volume": 0.000183,
                "trade_id": "235694191"
            },
            {
                "side": "sell",
                "time": 1781522109000,
                "price": 65914.4,
                "volume": 5.0e-6,
                "trade_id": "235694190"
…