API documentation

One WebSocket connection. Structured crypto, listing, on-chain and TradFi news in six languages.

Quick start

  1. Get a key from the bot: @COINOTAGWebSocketApi_feed_bot
  2. Open a WebSocket to the endpoint below, sending your key in the Authorization header.
  3. Add filters as query parameters so you only receive what you act on.
wss://feed.coinotag.com/v1/stream

That is the whole integration. There is nothing to poll and nothing to acknowledge.

Connecting

Authenticate with an Authorization: Bearer <key> header. This is the only accepted method. Passing the key in the query string is deliberately unsupported: query strings are written to proxy and CDN access logs, which would leave your key in plain text on disk.

Authorization: Bearer ctag_live_...

A key locks onto the first IP address that connects and stays there, and allows one live connection. You do not have to tell us your IP in advance — just connect from the machine that will use it. Moving servers? Message us and we clear the lock; the key itself does not change.

Build your request

Pick what you want. The endpoint and the client examples below update as you choose.

Categories

Languages

Listing events

Exchange

Coins

wss://feed.coinotag.com/v1/stream?category=listing,onchain&lang=en

Client examples

Minimal clients with reconnect. Replace the key and adjust the filters.

# pip install websockets
import asyncio, json, websockets

URL = "wss://feed.coinotag.com/v1/stream?category=listing,onchain&lang=en"
HEADERS = {"Authorization": "Bearer ctag_live_..."}

async def main():
    backoff = 1
    while True:
        try:
            async with websockets.connect(URL, additional_headers=HEADERS) as ws:
                backoff = 1
                async for raw in ws:
                    item = json.loads(raw)
                    print(item["category"], item["lang"], item["title"])
        except websockets.ConnectionClosed as exc:
            if exc.rcvd and exc.rcvd.code == 4401:
                raise SystemExit("invalid key - not retrying")
        await asyncio.sleep(backoff)
        backoff = min(backoff * 2, 30)

asyncio.run(main())
// npm i ws
import WebSocket from "ws";

const URL = "wss://feed.coinotag.com/v1/stream?category=listing,onchain&lang=en";
const KEY = "ctag_live_...";
let backoff = 1000;

function connect() {
  const ws = new WebSocket(URL, { headers: { Authorization: `Bearer ${KEY}` } });

  ws.on("open", () => { backoff = 1000; });
  ws.on("message", (raw) => {
    const item = JSON.parse(raw);
    console.log(item.category, item.lang, item.title);
  });
  ws.on("close", (code) => {
    if (code === 4401) return console.error("invalid key - not retrying");
    setTimeout(connect, backoff);
    backoff = Math.min(backoff * 2, 30000);
  });
}

connect();
// go get github.com/gorilla/websocket
package main

import (
    "encoding/json"
    "log"
    "net/http"
    "time"

    "github.com/gorilla/websocket"
)

type Item struct {
    ID       string   `json:"id"`
    Lang     string   `json:"lang"`
    Category string   `json:"category"`
    Coins    []string `json:"coins"`
    Title    string   `json:"title"`
}

func main() {
    url := "wss://feed.coinotag.com/v1/stream?category=listing,onchain&lang=en"
    hdr := http.Header{"Authorization": {"Bearer ctag_live_..."}}
    backoff := time.Second

    for {
        c, _, err := websocket.DefaultDialer.Dial(url, hdr)
        if err != nil {
            time.Sleep(backoff)
            if backoff < 30*time.Second {
                backoff *= 2
            }
            continue
        }
        backoff = time.Second
        for {
            _, raw, err := c.ReadMessage()
            if err != nil {
                break
            }
            var it Item
            if json.Unmarshal(raw, &it) == nil {
                log.Println(it.Category, it.Lang, it.Title)
            }
        }
        c.Close()
    }
}

Message schema

FieldTypeDescription
idstringStream id: <milliseconds>-<sequence>. Strictly increasing, so it doubles as a cursor. Items published in the same millisecond share the timestamp and differ by sequence.
published_atstringISO-8601, microsecond precision, UTC.
langstringOne of tr en ja ko zh ar
categorystringOne of listing crypto onchain tradfi
eventstringlisting only: list delist caution futures roadmap. Empty otherwise.
exchangestringlisting only. Empty otherwise.
coinsstring[]Detected ticker symbols.
crypto_relevantboolAlways true for listing, onchain and crypto. For tradfi, whether the item is relevant to crypto markets.
titlestringHeadline derived from the first sentence.
bodystringFull text. No markup, no tags, no branding.

title is the first sentence of body, capped at 120 characters. For short items the two are identical.

Message examples

Listing — exchange and ticker already parsed, event tells you which action.

"id": "1787893201893-1",
 "published_at": "2026-08-28T10:00:01.893117Z",
 "lang": "en",
 "category": "listing",
 "event": "delist",
 "exchange": "UPBIT",
 "coins": [
  "SNX"
 ],
 "crypto_relevant": true,
 "title": "UPBIT will delist $SNX.",
 "body": "UPBIT will delist $SNX."

On-chain — whale and institutional movement.

"id": "1787893502771-0",
 "published_at": "2026-08-28T10:05:02.771093Z",
 "lang": "en",
 "category": "onchain",
 "event": "",
 "exchange": "",
 "coins": [
  "BTC"
 ],
 "crypto_relevant": true,
 "title": "Chainlink added 92K $LINK (~$1.1M) to its strategic reserve yesterday.",
 "body": "Chainlink added 92K $LINK (~$1.1M) to its strategic reserve yesterday."

Crypto — general headlines. event and exchange are empty.

"id": "1787893410551-0",
 "published_at": "2026-08-28T10:03:30.551880Z",
 "lang": "en",
 "category": "crypto",
 "event": "",
 "exchange": "",
 "coins": [
  "BTC"
 ],
 "crypto_relevant": true,
 "title": "TRUMP FAMILY'S NEW CRYPTO BANK IS BACKED BY ABU DHABI SHEIKH: WSJ\nABU DHABI ROYAL IS...",
 "body": "TRUMP FAMILY'S NEW CRYPTO BANK IS BACKED BY ABU DHABI SHEIKH: WSJ\nABU DHABI ROYAL IS MAJOR SHAREHOLDER BEHIND TRUMP-BACKED CRYPTO COMPANY'S BANK, SOURCES SAY\nSHEIKH TAHNOON BIN ZAYED AL NAHYAN, CO-INVESTORS BACK 49% STAKE IN BANK'S HOLDING COMPANY, SOURCES SAY\nBANK WON PRELIMINARY APPROVAL FROM TRUMP ADMINISTRATION THIS MONTH"

TradFi — crypto_relevant separates market-moving items from general macro. TradFi is published in en and tr by default, so this example stays in English.

"id": "1787907805014-0",
 "published_at": "2026-08-28T16:03:25.708431Z",
 "lang": "en",
 "category": "tradfi",
 "event": "",
 "exchange": "",
 "coins": [],
 "crypto_relevant": false,
 "title": "TRUMP ADMINISTRATION WORKING ON AI RULE TO CURB CHINA'S REMOTE ACCESS TO CHIPS.",
 "body": "TRUMP ADMINISTRATION WORKING ON AI RULE TO CURB CHINA'S REMOTE ACCESS TO CHIPS."
"id": "1787907805014-1",
 "published_at": "2026-08-28T16:03:25.708431Z",
 "lang": "tr",
 "category": "tradfi",
 "event": "",
 "exchange": "",
 "coins": [],
 "crypto_relevant": false,
 "title": "TRUMP YÖNETİMİ, ÇİN'İN ÇİPLERE UZAKTAN ERİŞİMİNİ SINIRLANDIRMAK İÇİN YAPAY ZEKÂ...",
 "body": "TRUMP YÖNETİMİ, ÇİN'İN ÇİPLERE UZAKTAN ERİŞİMİNİ SINIRLANDIRMAK İÇİN YAPAY ZEKÂ KURALLARI ÜZERİNDE ÇALIŞIYOR."

Filtering

Supported query parameters: category, lang, event, exchange, coins, crypto_relevant. Commas inside one parameter mean OR; separate parameters are ANDed. An omitted parameter applies no constraint. coins matches when the intersection is non-empty.

?category=listing&event=list,delist&coins=BTC,SOL&lang=en

Connection behaviour

  • The server pings every 20 seconds, so idle connections are never dropped for inactivity.
  • Slow consumers are isolated: if your send queue fills up, your connection is closed. Reconnect and keep up.

Recovering after a drop

  • There is no backfill. News published while you were disconnected is not resent — stale news has no value in this product.
  • Optionally reconnect with ?since=<last_id> to recover at most the last 10 minutes. Anything older is not sent. Every message carries published_at, so you decide what is still actionable.
wss://feed.coinotag.com/v1/stream?since=1787893201893-1&category=listing

Errors and limits

The connection is closed with a code. Reconnect with exponential backoff — 1s, 2s, 5s, capped at 30s.

CodeMeaningWhat to do
4401Invalid or expired key, or a different IP than the one it locked onto.Stop reconnecting. Check the key — and the IP — with us.
4403This key already has a live connection.Close the other connection. A second machine needs its own key.
4429Too many connection attempts from your IP.Back off. Repeated failures block the IP for five minutes.
4408Your send queue filled up.Consume faster, or process messages off the socket thread.

A key locks onto the first IP that connects and allows one live connection. Thirty connection attempts per minute per IP. There is no limit on messages received — the full feed is included.

FAQ

Why do some tradfi items arrive in only two languages?

TradFi content is published in en and tr by default. Items we judge directly relevant to crypto markets (crypto_relevant: true) are published in all six languages.

How do I match the translations of the same story?

The languages of one story arrive within a short window and share category, coins and a near-identical published_at. For listing the six records share one published_at; for translated stories the stamps differ by tens to a few hundred milliseconds. There is deliberately no shared identifier: publishing one would mean carrying an internal reference we do not expose.

Can I send messages on the socket?

The stream is listen-only. Anything you send is ignored.

Need a key? Open @COINOTAGWebSocketApi_feed_bot on Telegram — it issues one the moment your payment confirms.