Naar de inhoud
GET /v1/trades

Recent trades for a symbol

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/phemex-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "count": 50,
        "symbol": "BTCUSDT",
        "trades": [
            {
                "qty": 0.275,
                "side": "Sell",
                "price": 65891.5,
                "timestamp": 1781522130305432600
            },
            {
                "qty": 0.2,
                "side": "Sell",
                "price": 65890.2,
                "timestamp": 1781522129040714200
            },
            {
                "qty": 0.001,
                "side": "Buy",
                "price": 65889.7,
                "timestamp": 1781522128902042400
            },
            {
                "qty": 0.067,
                "side": "Sell",
                "price": 65890.5,
                "timestamp": 1781522127872530700
            },
            {
                "qty": 0.002,
                "side": "Sell",
                "price": 65890.5,
                "timestamp": 1781522127872530700
            },
            {
                "qty": 0.005,
                "side": "Sell",
                "price": 65890.5,
                "timestamp": 1781522127872530700
            },
            {
                "qty": 0.116,
                "side": "Sell",
                "price": 65890.5,
                "timestamp": 1781522127872530700
            },
            {
                "qty": 0.01,
                "side": "Sell",
                "price": 65890.5,
                "timestamp": 1781522127872530700
            },
            {
                "qty": 0.025,
                "side": "Sell",
                "price": 65890.5,
                "timestamp": 1781522126586228700
            },
            {
                "qty": 0.039,
                "side": "Sell",
                "price": 65890.5,
                "timestamp": 1781522126586228700
            },
            {
                "qty": 0.134,
                "side": "Sell",
                "price": 65890.5,
                "timestamp": 1781522126586228700
            },
            {
                "qty": 0.002,
                "side": "Sell",
                "price": 65890.5,
                "timestamp": 1781522126586228700
            },
            {
                "qty": 0.136,
                "side": "Sell",
                "price": 65892,
                "timestamp": 1781522125249353500
            },
            {
                "qty": 0.067,
                "side": "Sell",
                "price": 65892,
                "timestamp": 1781522124890966800
            },
            {
                "qty": 0.006,
                "side": "Sell",
                "price": 65892,
                "timestamp": 1781522124887496400
            },
            {
                "qty": 0.001,
                "side": "Sell",
                "price": 65892,
                "timestamp": 1781522124874879200
            },
            {
                "qty": 0.281,
                "side": "Sell",
                "price": 65894.7,
                "timestamp": 178
…