Vai al contenuto
GET /v1/trades

Recent 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/phemex-api

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
…