Skip to content
GET /v1/trades

Recent public trades

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/bitmex-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "count": 25,
        "symbol": "XBTUSD",
        "trades": [
            {
                "side": "Buy",
                "size": 800,
                "price": 65894.9,
                "trade_id": "00000000-006d-1000-0000-0032f50eedbd",
                "timestamp": "2026-06-15T11:15:38.523Z",
                "tick_direction": "PlusTick"
            },
            {
                "side": "Buy",
                "size": 800,
                "price": 65891.9,
                "trade_id": "00000000-006d-1000-0000-0032f50eecb4",
                "timestamp": "2026-06-15T11:15:38.516Z",
                "tick_direction": "PlusTick"
            },
            {
                "side": "Buy",
                "size": 1600,
                "price": 65883,
                "trade_id": "00000000-006d-1000-0000-0032f50ec328",
                "timestamp": "2026-06-15T11:15:37.733Z",
                "tick_direction": "ZeroPlusTick"
            },
            {
                "side": "Buy",
                "size": 800,
                "price": 65883,
                "trade_id": "00000000-006d-1000-0000-0032f50ec327",
                "timestamp": "2026-06-15T11:15:37.733Z",
                "tick_direction": "ZeroPlusTick"
            },
            {
                "side": "Buy",
                "size": 1000,
                "price": 65882.9,
                "trade_id": "00000000-006d-1000-0000-0032f50ec326",
                "timestamp": "2026-06-15T11:15:37.733Z",
                "tick_direction": "ZeroPlusTick"
            },
            {
                "side": "Buy",
                "size": 100,
                "price": 65876.9,
                "trade_id": "00000000-006d-1000-0000-0032f50ec24b",
                "timestamp": "2026-06-15T11:15:37.731Z",
                "tick_direction": "PlusTick"
            },
            {
                "side": "Sell",
                "size": 3000,
                "price": 65858.9,
                "trade_id": "00000000-006d-1000-0000-0032f50d699a",
                "timestamp": "2026-06-15T11:15:21.869Z",
                "tick_direction": "MinusTick"
            },
            {
                "side": "Sell",
                "size": 300,
                "price": 65858.9,
                "trade_id": "00000000-006d-1000-0000-0032f50d6999",
                "timestamp": "2026-06-15T11:15:21.869Z",
                "tick_direction": "MinusTick"
            },
            {
                "side": "Sell",
                "size": 500,
                "price": 65863,
                "trade_id": "00000000-006d-1000-0000-0032f50d341a",
                "timestamp": "2026-06-15T11:15:19.798Z",
                "tick_direction": "MinusTick"
            },
            {
                "side": "Sell",
                "size": 800,
                "price": 65871,
                "trade_id": "00000000-006d-1000-0000-0032f50d268f",
                "timestamp": "2026-06-15T11:15:19.672Z",
                "tick_direction
…