Skip to content
aeon/feed

OKX price feed

Top-tier global exchange. Streamed via the books5 channel. Every OKX quote appears in ticker:<SYMBOL> messages with "ex":"okx".

Only OKX quotes
const ws = new WebSocket("wss://aeonfeed.com/ws?subscribe=ticker:BTCUSDT,ticker:ETHUSDT");
ws.onmessage = (e) => {
  const msg = JSON.parse(e.data);
  if (msg.type !== "ticker" && msg.type !== "snapshot") return;
  const quotes = (msg.data ?? []).filter((q) => q.ex === "okx");
  for (const q of quotes) console.log(msg.s, q.b, q.a);
};

OKX native format → Aeon format

What OKX actually sends for BTC/USDT, captured from its public WebSocket, and the normalised quote you receive from Aeon Feed. Depth arrays are trimmed for readability.

Endpoint
wss://ws.okx.com:8443/ws/v5/public
1 · Subscribe request sent to OKX
{
  "op": "subscribe",
  "args": [
    {
      "channel": "books5",
      "instId": "BTC-USDT"
    }
  ]
}
2 · Native message from OKX
{
  "arg": {
    "channel": "books5",
    "instId": "BTC-USDT"
  },
  "data": [
    {
      "asks": [
        [
          "73556.7",
          "0.60445515",
          "0",
          "8"
        ],
        [
          "73557",
          "0.081092",
          "0",
          "2"
        ],
        "…"
      ],
      "bids": [
        [
          "73556.6",
          "0.47514986",
          "0",
          "10"
        ],
        [
          "73556.5",
          "0.18101015",
          "0",
          "1"
        ],
        "…"
      ],
      "instId": "BTC-USDT",
      "ts": "1794472000205",
      "seqId": 83726844810
    }
  ]
}
OKX fieldAeon field
arg.instId (BTC-USDT)symbol (BTCUSDT)
data[0].bids[0] = [price, size, _, orders]b, bq
data[0].asks[0]a, aq
data[0].tset (exchange event time)
3 · What you receive from Aeon Feed (ticker:BTCUSDT)
{
  "type": "ticker",
  "ts": 1794472001001,
  "channel": "ticker:BTCUSDT",
  "s": "BTCUSDT",
  "data": [
    {
      "ex": "okx",
      "b": 73556.6,
      "a": 73556.7,
      "bq": 0.47514986,
      "aq": 0.60445515,
      "t": 1794472001000,
      "et": 1794472000205
    }
  ]
}

Pairs on OKX

Checking which pairs are listed…

Aeon Feed is free, with no ads and no paid tier. Donations keep it that way.

  • Keeping the project alive: servers and bandwidth for a free, public real-time feed.
  • Maintenance: keeping up with exchange API changes, fixing bugs, adding pairs and exchanges.
  • New features: cross-exchange arbitrage signals are next on the roadmap.
Tron (TRC-20)
Tether (USDT)
TXFraDKB…ZCAmpi

Send USDT only on the network you selected. TRC-20 has the lowest fees.