Overview

Disclaimer: Market data provided through this API is for informational purposes only and is delivered "as is" without warranty. It does not constitute financial, investment, or trading advice. See our Terms of Service for full details.

The Qalypto WebSocket API provides real-time, validated market data from multiple cryptocurrency exchanges. Stream trades, tickers, klines, orderbook and liquidation data with sub-second latency.

4
Exchanges
5
Data Types
13
Symbols
~250ms E2E
WS Latency

Supported Exchanges

BinanceBitgetBybitOKX

Data Coverage

Symbols:BTCUSDT, ETHUSDT, SOLUSDT, XRPUSDT, BNBUSDT, DOGEUSDT, ADAUSDT, DOTUSDT, LINKUSDT, AVAXUSDT, LTCUSDT, SUIUSDT, TRXUSDT
Kline Intervals:1m, 5m, 15m, 30m, 1h, 4h, 12h, 1d

Data Delivery Rates

All data is maintained server-side - we handle reconnections, gap detection, and state management. You receive clean, validated data without worrying about exchange quirks.

Data TypeDeliveryNotes
tradeReal-timeEvery trade pushed immediately
tickerReal-timeEvery update pushed immediately
klineReal-timeLive maintained candles with every update
orderbookSampledMaintained L2 snapshot every 0.2s or 100 updates
liquidationReal-timeEvent-driven; legitimately quiet for long stretches

Authentication

Each interface has its own authentication. You will receive your credentials via email within 12 hours of account creation (usually much faster).

ClickHouse (SQL)

Native ClickHouse username + password over HTTPS. No extra headers.

WebSocket - required headers (Cloudflare Access Service Token)

CF-Access-Client-Id: <your-client-id>
CF-Access-Client-Secret: <your-client-secret>

Compliance API

One X-API-Key header per client. See the Compliance API section below.

Keep your credentials secure. Do not share them or commit them to version control. If you believe your credentials have been compromised, contact support immediately.

ClickHouse Connection

Connect to ClickHouse for historical data queries using SQL:

Hostclickhouse.qalypto.com
Port8443 (HTTPS)
Databasemarket_data
Username<your-username>
Password<your-password>

TLS/SSL encryption is required for all connections. Unencrypted connections are not supported.

1import requests
2
3# ClickHouse HTTP API Connection
4HOST = "https://clickhouse.qalypto.com:8443"
5USER = "<your-username>"
6PASSWORD = "<your-password>"
7
8def query(sql):
9 response = requests.get(
10 HOST,
11 params={'query': sql},
12 auth=(USER, PASSWORD),
13 verify=True
14 )
15 response.raise_for_status()
16 return response.text
17
18# Query recent trades
19result = query('''
20 SELECT
21 timestamp,
22 exchange,
23 symbol,
24 price,
25 amount,
26 side
27 FROM market_data.market_data_trade
28 WHERE timestamp >= now() - INTERVAL 1 HOUR
29 ORDER BY timestamp DESC
30 LIMIT 100
31 FORMAT TabSeparated
32''')
33
34for line in result.strip().split('\n'):
35 print(line)

Database Tables

Five tables store all market data. Every table additionally carries the provenance columns consumer_received (DateTime64(3)), producer_received and producer_sent (both Nullable(DateTime64(3))): when we received the event from the exchange and when it was persisted. Historical rows from before mid-2026 honestly carry NULL there.

market_data_trade

ColumnType
timestampDateTime64(3)
exchangeString
symbolString
priceFloat64
amountFloat64
sideString
trade_idString
is_liquidationUInt8

Units: every quantity field (trade amount, order book sizes, kline volume, ticker volume_24h, liquidation amount) is expressed in the base coin on all four venues. OKX quotes derivatives in contracts; the pipeline converts them with the instrument's contract value (ctVal) at ingestion since 2026-09-14 13:27 UTC. Bitget liquidation amounts are converted from USDT notional to coins since the same time. OKX rows before that timestamp were normalized retroactively; each corrected day was re-sealed as a new revision with the reason on record.

market_data_ticker

ColumnType
timestampDateTime64(3)
exchangeString
symbolString
last_priceFloat64
bid_price, ask_priceNullable(Float64)
bid_size, ask_sizeNullable(Float64)
high_24h, low_24h, volume_24hNullable(Float64)
quote_volume_24hNullable(Float64)
open_24hNullable(Float64)
funding_rateNullable(Float64) - Perpetual funding rate
next_funding_timeNullable(DateTime64) - Next settlement
mark_price, index_priceNullable(Float64)
open_interestNullable(Float64) - Contracts
open_interest_valueNullable(Float64) - USD value

market_data_kline

ColumnType
timestampDateTime64(3)
exchangeString
symbolString
intervalString
open, high, low, closeFloat64
volumeFloat64
quote_volumeNullable(Float64)
num_tradesNullable(Int32)
close_timeNullable(DateTime64(3))
is_finalUInt8

market_data_orderbook

ColumnType
timestampDateTime64(3)
exchangeString
symbolString
bid_prices, bid_sizesArray(Float64)
ask_prices, ask_sizesArray(Float64)
bids_price_0, asks_price_0Float64
bids_size_0, asks_size_0Float64
is_snapshotUInt8
sequence_idString

market_data_liquidation

ColumnType
timestampDateTime64(3)
exchangeString
symbolString
liquidated_sideString (long / short)
priceFloat64
amountFloat64
bankruptcy_priceNullable(Float64)
is_snapshotUInt8

Coverage since 06/2026. Event-driven: long quiet stretches are normal market behaviour, not gaps.

Note on Nullable Fields

Some fields may be NULL depending on the exchange. For example, quote_volume_24h and open_24h are not available from all exchanges.

WebSocket-Only Fields

WebSocket messages include additional fields not present in the ClickHouse tables:

  • _timestamps.websocket_sent - Epoch ms when the WebSocket server dispatched the message to your connection.
  • _timestamps.exchange_event_time - Epoch ms when the event occurred at the exchange (parsed from data.timestamp). Use this for end-to-end latency calculation.
  • producer_received - Top-level epoch ms when our producer first received the data from the exchange.

Latency calculations:

# Internal pipeline latency (producer → websocket server)
internal_latency = _timestamps.websocket_sent - producer_received
# Typical: P50 ~85ms | P95 ~180ms

# End-to-end latency (exchange event → websocket server)
e2e_latency = _timestamps.websocket_sent - _timestamps.exchange_event_time
# Typical: P50 ~250ms | P95 ~350ms (OKX may be higher)

Query Examples

Common SQL queries for market data analysis:

OHLCV Data for Backtesting

Get historical klines
1-- Get OHLCV data for backtesting
2SELECT
3 timestamp,
4 exchange,
5 symbol,
6 interval,
7 open,
8 high,
9 low,
10 close,
11 volume
12FROM market_data.market_data_kline
13WHERE symbol IN ('BTCUSDT', 'ETHUSDT', 'SOLUSDT')
14 AND interval = '1h'
15 AND exchange = 'binance'
16 AND is_final = 1 -- only finalized candles (no live updates)
17 AND timestamp >= now() - INTERVAL 7 DAY
18ORDER BY timestamp ASC

Cross-Exchange Price Comparison

Compare prices across exchanges
1-- Cross-exchange price comparison
2SELECT
3 exchange,
4 avg(last_price) as avg_price,
5 max(last_price) as max_price,
6 min(last_price) as min_price,
7 count() as updates
8FROM market_data.market_data_ticker
9WHERE symbol IN ('BTCUSDT', 'ETHUSDT')
10 AND timestamp >= now() - INTERVAL 5 MINUTE
11GROUP BY exchange, symbol
12ORDER BY avg_price DESC

WebSocket Connection

Connect to the WebSocket API using the following endpoint:

wss://ws.qalypto.com/ws/stream/{client_id}

Parameters

ParameterTypeDescription
client_idstringUnique identifier for your connection (e.g., your username)

Connection Examples

1import asyncio
2import websockets
3import json
4
5async def connect():
6 uri = "wss://ws.qalypto.com/ws/stream/my-client-001"
7 headers = {
8 "CF-Access-Client-Id": "<your-client-id>",
9 "CF-Access-Client-Secret": "<your-client-secret>"
10 }
11
12 async with websockets.connect(uri, extra_headers=headers,
13 ping_interval=None, ping_timeout=None) as ws:
14 # Subscribe to channels
15 await ws.send(json.dumps({
16 "action": "subscribe",
17 "channels": ["trade", "ticker", "kline"]
18 }))
19
20 # Receive messages
21 async for message in ws:
22 msg = json.loads(message)
23 # Handle server heartbeat
24 if msg.get("type") == "ping":
25 await ws.send(json.dumps({"action": "pong"}))
26 continue
27 data = msg.get("data", {})
28 print(f"[{data.get('exchange')}] {data.get('symbol')}: {data}")
29
30asyncio.run(connect())

Connection Heartbeat (Important!)

Similar to Binance, Bybit, and OKX, our WebSocket server implements a heartbeat mechanism to ensure connection stability:

1.
Server sends ping every 20 seconds

You will receive: {"type": "ping", "timestamp": 1706450000000}

2.
Client must respond with pong within 60 seconds

Send: {"action": "pong"}

3.
Connection will be closed if no pong received

After 60 seconds without pong or 3 missed pongs, the server disconnects the client.

# Python example - handle server ping
if msg.get("type") == "ping":
    await ws.send(json.dumps({"action": "pong"}))

Subscription

After connecting, send a subscription message to start receiving data:

Subscribe Message
1{
2 "action": "subscribe",
3 "channels": ["trade", "ticker", "kline", "orderbook", "liquidation"]
4}

Actions

ActionDescription
subscribeSubscribe to one or more channels
unsubscribeUnsubscribe from channels
pingClient-initiated health check (returns pong)
pongResponse to server ping (required for heartbeat)
statusGet connection status
Unsubscribe Message
1{
2 "action": "unsubscribe",
3 "channels": ["orderbook"]
4}

Client → Server Messages

Ping (client-initiated)
1{
2 "action": "ping"
3}
Pong (response to server ping)
1{
2 "action": "pong"
3}
Status Request
1{
2 "action": "status"
3}

Server → Client Messages

Connected (on connection)
1{
2 "type": "connected",
3 "client_id": "my-client-001",
4 "message": "Welcome to Qalypto Real-Time Data Stream",
5 "available_subscriptions": [
6 "trade", "ticker", "orderbook", "kline", "liquidation",
7 "trade:btcusdt", "trade:ethusdt", "ticker:*", "*"
8 ],
9 "connection_guidelines": {
10 "heartbeat": {
11 "ping_interval_seconds": 20,
12 "pong_timeout_seconds": 60,
13 "description": "Server sends ping every 20s. Client must respond with pong within 60s."
14 },
15 "rate_limits": {
16 "max_control_messages_per_second": 5,
17 "max_subscriptions_per_connection": 50
18 },
19 "actions": ["subscribe", "unsubscribe", "ping", "pong", "status"]
20 }
21}
Subscribed (after subscribe)
1{
2 "type": "subscribed",
3 "channels": ["trade", "ticker", "kline", "orderbook", "liquidation"]
4}
Server Ping (Heartbeat)

Server sends this every 20 seconds. You MUST respond with pong!

Server Ping
1{
2 "type": "ping",
3 "timestamp": 1706450000000,
4 "server_time": "2026-01-28T12:53:40.123Z"
5}
Pong Acknowledgement
1{
2 "type": "pong_ack",
3 "timestamp": "2026-01-28T12:53:40.456Z"
4}
Status Response
1{
2 "type": "status",
3 "client_id": "my-client-001",
4 "subscriptions": ["trade", "ticker", "kline", "orderbook", "liquidation"],
5 "messages_received": 12847,
6 "connected_since": "2026-01-28T12:00:00.000Z"
7}
Error Response
1{
2 "error": "Rate limit exceeded. Max 5 control messages per second."
3}

Reconnection Handling

The server does not persist subscriptions after disconnect. Implement automatic reconnection with exponential backoff:

Python - Reconnection with Backoff
1import asyncio
2import websockets
3import json
4from datetime import datetime
5
6class QalyptoClient:
7 def __init__(self, username, cf_client_id, cf_client_secret):
8 self.uri = f"wss://ws.qalypto.com/ws/stream/{username}"
9 self.headers = {
10 "CF-Access-Client-Id": cf_client_id,
11 "CF-Access-Client-Secret": cf_client_secret
12 }
13 self.channels = ["trade", "ticker"]
14 self.reconnect_delay = 1
15 self.max_reconnect_delay = 60
16
17 async def connect(self):
18 while True:
19 try:
20 async with websockets.connect(
21 self.uri,
22 extra_headers=self.headers,
23 ping_interval=None, # Disable library pings - we use server's JSON heartbeat
24 ping_timeout=None
25 ) as ws:
26 print(f"[{datetime.now()}] Connected")
27 self.reconnect_delay = 1 # Reset on success
28
29 # Subscribe
30 await ws.send(json.dumps({
31 "action": "subscribe",
32 "channels": self.channels
33 }))
34
35 async for message in ws:
36 await self.handle_message(json.loads(message), ws)
37
38 except Exception as e:
39 print(f"[{datetime.now()}] Error: {e}")
40 print(f"Reconnecting in {self.reconnect_delay}s...")
41 await asyncio.sleep(self.reconnect_delay)
42 self.reconnect_delay = min(
43 self.reconnect_delay * 2,
44 self.max_reconnect_delay
45 )
46
47 async def handle_message(self, msg, ws):
48 msg_type = msg.get("type")
49
50 # IMPORTANT: Respond to server pings to keep connection alive
51 if msg_type == "ping":
52 await ws.send(json.dumps({"action": "pong"}))
53 return
54
55 # Handle market data
56 data = msg.get("data", {})
57 if msg_type in ["trade", "ticker", "kline", "orderbook", "liquidation"]:
58 print(f"[{msg_type}] {data.get('exchange')}: {data.get('price', data.get('last_price', 'N/A'))}")
59
60# Usage
61client = QalyptoClient("<your-username>", "<your-client-id>", "<your-client-secret>")
62asyncio.run(client.connect())

Channels

Subscribe to different channels to receive specific types of market data:

Data Type Channels

tradeAll trade data from all exchanges
tickerAll ticker data from all exchanges
klineAll kline/candlestick data
orderbookAll orderbook snapshots
liquidationForced liquidations from all exchanges (event-driven, sporadic)

Symbol-Specific Channels

trade:btcusdtTrades for BTCUSDT (works for every symbol: ethusdt, solusdt, xrpusdt, bnbusdt, dogeusdt, adausdt, dotusdt, linkusdt, avaxusdt, ltcusdt, suiusdt, trxusdt)
ticker:ethusdtTicker for ETHUSDT (also: btcusdt, solusdt, xrpusdt, bnbusdt, dogeusdt, adausdt, dotusdt, linkusdt, avaxusdt, ltcusdt, suiusdt, trxusdt)
kline:1m:solusdt1-minute klines for SOLUSDT (any symbol + interval)
orderbook:xrpusdtOrderbook for XRPUSDT (also: btcusdt, ethusdt, solusdt, bnbusdt, dogeusdt, adausdt, dotusdt, linkusdt, avaxusdt, ltcusdt, suiusdt, trxusdt)

Kline Intervals

1m5m15m30m1h4h12h1d

Wildcard

Use * to subscribe to all data types.

Message Format

All messages are JSON objects with the following structure:

Message Structure
1{
2 "type": "trade", // Data type
3 "symbol": "BTCUSDT", // Trading pair
4 "timestamp": "2026-...", // Server timestamp (ISO 8601)
5 "data": { ... }, // Payload
6 "producer_received": 17708... // Epoch ms - when producer received from exchange
7}

Timestamps

All timestamps set by Qalypto are UTC. This includes:

  • producer_receivedEpoch ms (float) - when our producer first received the data from the exchange.
  • _timestamps.websocket_sentEpoch ms (int) - when the WebSocket server dispatched the message to your connection.
  • _timestamps.exchange_event_timeEpoch ms (int) - when the event occurred at the exchange. Use for end-to-end latency.

Internal latency: websocket_sent - producer_received (P50 ~85ms)

E2E latency: websocket_sent - exchange_event_time (P50 ~250ms)

With an API Key & Alerts

The same stream with your own API key, created in the customer portal with the right stream: connect to wss://api.qalypto.com/v1/stream/{client_id} and send the key as Authorization: Bearer qk_... (or X-API-Key; a query parameter ?api_key= works for browsers but can end up in logs). The welcome message names your exchanges and what you can subscribe to: the data types of your access, and alerts if the stream is one of your alert channels. Up to 5 connections per customer; a key revoked in the portal closes its open connections within a minute (code 4401).

alerts delivers every alert your rules send to the stream, in order, each with a seq. After a reconnect, subscribe with since set to the last seq you processed and nothing is missed; the stream keeps 24 hours, an older seq gets an alerts_gap notice (fetch the rest with GET /v1/deliveries).

Live stream and alerts with an API key
1import asyncio, json, websockets
2
3async def main(last_seq=None):
4 async with websockets.connect("wss://api.qalypto.com/v1/stream/desk-1",
5 additional_headers={"Authorization": "Bearer qk_<your-key>"}) as ws:
6 print(json.loads(await ws.recv())) # welcome: your exchanges and channels
7 await ws.send(json.dumps({"action": "subscribe", "channels": ["trade", "alerts"],
8 **({"since": last_seq} if last_seq else {})}))
9 async for raw in ws:
10 m = json.loads(raw)
11 if m.get("type") == "alert":
12 last_seq = m["seq"] # store it: resume from here after a reconnect
13 print(m["alert"]["event"]["title"])
14 elif m.get("type") == "ping":
15 await ws.send(json.dumps({"action": "pong"}))
16
17asyncio.run(main())

Compliance API - Overview & Auth

The Compliance API is the evidence layer on top of the data platform: market data in the regulator's format, case dossiers, best-execution evidence and cryptographic proofs down to the Bitcoin anchor. It is delivery-audited: every response and every denied attempt is logged with a content hash.

Authentication
1# Base URL
2https://compliance.qalypto.com
3
4# Authentication: one header, per-client key
5curl -H "X-API-Key: <your-key>" \
6 "https://compliance.qalypto.com/esma/meta"

Good to know

  • Personalization: keys configured with your GLEIF LEI (checksum-verified) emit it as the executing party in every ESMA record.
  • Proof headers: responses for sealed days carry X-Qalypto-Super-Root - the day's Bitcoin-anchored Merkle root.
  • Honest scope: GET /esma/meta documents what we deliberately do not offer (auth.116/118 order registers cannot be derived from public data) and why.

ESMA Records (auth.117)

Verified trades as schema-valid ISO 20022 CryptoAssetRecordKeepingReport documents (ESMA MiCA package, validated against the official schema at build time). Uselimit / offset to page large days;X-Qalypto-More tells you when to keep going.

GET /esma/auth117
1curl -H "X-API-Key: <your-key>" \
2 "https://compliance.qalypto.com/esma/auth117?venue=binance&symbol=BTCUSDT&date=2026-07-07&limit=1000"
3
4# Response (trimmed): one Tx/New record per trade
5{
6 "Document": { "CrptAsstRcrdKeepgRpt": { "Tx": [ {
7 "New": {
8 "TxRcrdId": "8395015042",
9 "ExctgPty": { "LEI": "<your LEI, when configured>" },
10 "Tx": { "TradDt": "2026-07-07T00:00:03.510Z",
11 "Qty": { "Unit": "0.25" }, "TradVn": "BINC" },
12 "CrptAsst": { "DgtlTknIdr": { "DTI": "4H95J0R2X" } }
13 } } ] } }
14}

Case Dossiers

The audit annex as one ZIP: a window (up to 7 days, one or more symbols) with all five channels as CSV, the same trades as auth.117 JSON per venue, the exact quality-check and gap-ledger evidence of that window, and the proof anchors. The Merkle chain verifies fully offline. Any row cap that bites is declared indossier.json - never silent.

GET /dossier
1curl -OJ -H "X-API-Key: <your-key>" \
2 "https://compliance.qalypto.com/dossier?symbol=BTCUSDT,ETHUSDT&from=2026-07-07&to=2026-07-07"
3
4qalypto-dossier-2symbols-2026-07-07.zip
5├── data/ trades, klines_final, orderbook_top, ticker, liquidations (CSV)
6├── esma/ auth117-<venue>.json (personalized, schema-valid)
7├── evidence/ quality_checks.csv, data_gaps.csv (exactly this window)
8├── proofs/ registry entries + anchors-<day>-r<rev>.json (RFC-3161 + Bitcoin)
9├── verifier/ standalone verifier (Python + JS), runs offline
10├── dossier.json manifest: row counts, truncation flags, sealed days
11└── README.md how to verify offline

Best Execution

Answers the examiner's question "was your price in the market?" for one moment: the best bid/ask of all four venues at the timestamp plus trade statistics of the surrounding window - from sealed data.

GET /bestex
1curl -H "X-API-Key: <your-key>" \
2 "https://compliance.qalypto.com/bestex?symbol=BTCUSDT&ts=2026-07-07 14:02:07&window_s=60"
3
4{
5 "venues": {
6 "binance": { "trades_in_window": 21120, "low": 62960.0, "high": 63115.0,
7 "vwap": 63028.26, "touch": { "best_bid": 63027.0, "best_ask": 63027.1 } },
8 "bybit": { "...": "..." }
9 },
10 "consolidated": { "best_bid": 63027.0, "best_ask": 63027.1 },
11 "how_to_read": "An execution at or inside the consolidated touch was in the market."
12}

Proofs & Anchors

Prove a single row up to the Bitcoin-anchored super-root, and fetch the anchor blobs for self-service offline verification. The anchors response uses the open-source verifier's field names - it feeds straight in, no renaming.

Inclusion proofs and anchors
1# 1) Request an inclusion proof for one trade (async job)
2curl -X POST -H "X-API-Key: <your-key>" \
3 "https://compliance.qalypto.com/proof/inclusion?day=2026-07-07&venue=bitget&channel=trade&symbol=LTCUSDT&trade_id=1458176976084537344"
4# -> { "job_id": "ca1998aa98a7427a", "poll": "/proof/inclusion/ca1998aa98a7427a" }
5
6# 2) Poll, save the proof, verify OFFLINE
7curl -H "X-API-Key: <your-key>" \
8 "https://compliance.qalypto.com/proof/inclusion/ca1998aa98a7427a" > proof.json
9python3 qalypto_verify.py inclusion --proof proof.json
10# RESULT: VALID
11
12# 3) The day's anchors (RFC-3161 token + OpenTimestamps proof)
13curl -H "X-API-Key: <your-key>" \
14 "https://compliance.qalypto.com/proof/anchors?day=2026-07-07" > anchors.json
15python3 qalypto_verify.py ots --registry anchors.json
16# with a local Bitcoin node: fully trustless verification
17# without one: 'ots info' names the block, any explorer confirms the header

The verifier (qalypto_verify.py, MIT, standard library only) recomputes every hash locally. It is open source at github.com/Qalypto/verifier and ships inside every dossier ZIP. No Qalypto system needs to be online - or trusted - for verification. Concepts and the honest scope boundary: the compliance model.

Alerts API - Overview & Auth

Real-time alerts on market and on-chain events: liquidation cascades, price swings, large trades, large on-chain transfers, stablecoin supply and exchange netflows. Every hit of a detector is a signal; related signals form an incident that is opened, escalated and closed. Your rules decide which of them reach you, through which channel. Facts only, no investment advice.

Authentication
1# Base URL (https only: plain http is refused before the key is read)
2https://api.qalypto.com
3
4# Authentication: your API key, issued per customer, shown once
5curl -H "Authorization: Bearer qk_<your-key>" https://api.qalypto.com/v1/me
6
7# Errors always look like this
8{ "error": { "code": "version_conflict", "message": "the rule changed meanwhile; read it again and retry" } }

Good to know

  • Scopes: a key may read (history, deliveries) or also change rules and channels.
  • Rate limit: 20 requests per second per key; one preview per 10 seconds. Above it: 429 with Retry-After.
  • Timestamps: every alert carries the event time, the detection time and the routing time, so you can measure our speed yourself.
  • Clients: send a User-Agent; Python's plain urllib default is blocked at the edge, requests and httpx work as they are.

Rules & Preview

A rule watches signals (every hit as it happens) or incidents(opened, escalated, closed) with filters: assets, chains, venues, exchanges on either side of a transfer, detectors, directions such as exchange_outflow, a minimum USD value and score. A rule only sees what happens after it was created. Changes need the version you read (If-Match); a rule changed meanwhile answers 412, never a silent overwrite.

POST /v1/rules/preview, /v1/rules
1# What would this rule have sent in the last 30 days? (nothing is sent)
2curl -X POST -H "Authorization: Bearer qk_<your-key>" -H "Content-Type: application/json" \
3 "https://api.qalypto.com/v1/rules/preview?days=30" \
4 -d '{"target": "signals", "assets": ["USDT"], "entities": ["binance"], "directions": ["exchange_outflow"], "min_usd": 100000000}'
5# -> { "matches": 7, "per_day": { "2026-10-29": 2, ... }, "newest": [...], "strongest": [...] }
6
7# Create it, delivering to one of your channels
8curl -X POST -H "Authorization: Bearer qk_<your-key>" -H "Content-Type: application/json" \
9 https://api.qalypto.com/v1/rules \
10 -d '{"target": "signals", "name": "Binance USDT outflows", "assets": ["USDT"], "entities": ["binance"],
11 "directions": ["exchange_outflow"], "min_usd": 100000000, "channel_ids": ["c_9f2a41d07b3e5c18"]}'
12# -> 201, ETag: "1"
13
14# Change it with the version you read
15curl -X PATCH -H "Authorization: Bearer qk_<your-key>" -H "If-Match: 1" -H "Content-Type: application/json" \
16 https://api.qalypto.com/v1/rules/r_5d1c0e9a7f3b2a64 -d '{"min_usd": 250000000}'
17
18# Incidents instead: opened from score 70, and the escalation to a higher severity, and the close
19{"target": "incidents", "min_score": 70, "triggers": ["opened", "escalated", "closed"], "channel_ids": ["c_..."]}

Thresholds & Schedule

Every rule can set its own thresholds and say when it may alert. min_values gives each detector a minimum in its own unit, as an amount: liquidations in USD within 60 seconds, a price swing in basis points within 15 seconds, a trading surge in trades within 5 seconds, transfers and large trades in USD, netflow and stablecoin supply in USD over 24 hours. cooldown_s sends at most one alert per asset in that many seconds (signals, up to 24 hours). A schedule limits alerts to weekdays (schedule_days, 1 = Monday) and a time of day (schedule_from and schedule_to, minutes after midnight, over midnight allowed) in a time zone (schedule_tz, IANA, empty = UTC). All of it is measured at the time of the event, so the preview shows exactly what the rule would have sent. What a schedule or a cooldown holds back appears in GET /v1/deliveries as suppressed with the reason.

A threshold narrows what the engine reports, it never widens it: each detector has its own detection threshold per asset (for example, large trades on BTC are reported from about $5M, on SOL from about $1M). A min_values entry at or below that threshold changes nothing for that asset. The Alert Studio in the demo shows the threshold per asset next to each field, measured over the last 90 days.

min_values, cooldown_s, schedule_*
1# Price swings of 1.5% or more and liquidations of $5M or more, at most one alert per asset every 15 minutes,
2# Monday to Friday from 08:00 to 18:00 in Zurich
3curl -X POST -H "Authorization: Bearer qk_<your-key>" -H "Content-Type: application/json" \
4 https://api.qalypto.com/v1/rules \
5 -d '{"target": "signals", "name": "Desk hours: swings and cascades",
6 "detectors": ["price_swing", "liquidation_cascade"],
7 "min_values": {"price_swing": 150, "liquidation_cascade": 5000000},
8 "cooldown_s": 900,
9 "schedule_tz": "Europe/Zurich", "schedule_days": [1, 2, 3, 4, 5], "schedule_from": 480, "schedule_to": 1080,
10 "channel_ids": ["c_9f2a41d07b3e5c18"]}'
11
12# Overnight watch: incidents opened from 22:00 to 06:00 UTC on any day
13{"target": "incidents", "triggers": ["opened"], "schedule_from": 1320, "schedule_to": 360}

Channels

A channel is where alerts go: a webhook (HTTPS, public addresses only, no redirects followed), an e-mail address, a Slack or Microsoft Teams channel, or a PagerDuty service. URLs, keys, secrets and addresses are stored only sealed. An e-mail address receives nothing before its owner confirms it, and every mail has a one-click unsubscribe. Alerts to one mail channel within 20 seconds arrive as one mail.

Slack takes the Webhook URL of an incoming webhook (a Slack app with Incoming Webhooks switched on), Teams the URL of a Workflows webhook (the template "Post to a channel when a webhook request is received"). Both get one message per alert, at most about one per second per channel. PagerDuty takes the Integration Key of an Events API v2 integration and its region (us or eu); PagerDuty then pages your on-call people by app, SMS or phone call. One of our incidents is one PagerDuty incident: opened and escalated trigger it, closed resolves it. A signal opens its own. A Slack, Teams or PagerDuty answer that the channel is gone (400, 401, 403, 404, 410) ends the delivery at once; anything else is tried again for about 10 hours.

POST /v1/channels
1# A webhook: the signing secret is in this answer only
2curl -X POST -H "Authorization: Bearer qk_<your-key>" -H "Content-Type: application/json" \
3 https://api.qalypto.com/v1/channels -d '{"type": "webhook", "name": "risk desk", "url": "https://hooks.example.com/qalypto"}'
4# -> { "id": "c_9f2a41d07b3e5c18", "signing_secret": "whsec_...", "target": "https://hooks.example.com/…" }
5
6# An e-mail address: a confirmation mail goes out first
7curl -X POST ... -d '{"type": "email", "name": "risk team", "address": "risk@example.com"}'
8
9# Slack, Microsoft Teams, PagerDuty
10curl -X POST ... -d '{"type": "slack", "name": "desk", "url": "https://hooks.slack.com/services/T.../B.../..."}'
11curl -X POST ... -d '{"type": "teams", "name": "risk", "url": "https://...logic.azure.com/workflows/..."}'
12curl -X POST ... -d '{"type": "pagerduty", "name": "on call", "routing_key": "<32-character integration key>", "region": "eu"}'
13
14# A test message through the channel (one per 30 s), then watch it arrive
15curl -X POST -H "Authorization: Bearer qk_<your-key>" https://api.qalypto.com/v1/channels/c_9f2a41d07b3e5c18/test
16curl -H "Authorization: Bearer qk_<your-key>" https://api.qalypto.com/v1/deliveries
17
18# A new signing secret; the old one stays valid for 24 hours (both signatures are sent meanwhile)
19curl -X POST -H "Authorization: Bearer qk_<your-key>" -H "If-Match: 1" \
20 https://api.qalypto.com/v1/channels/c_9f2a41d07b3e5c18/rotate

Webhook Signatures

Every webhook is a POST with the alert as JSON and three headers you should use:X-Qalypto-Signature (t=<unix seconds>,v1=<HMAC-SHA256>over <t>.<raw body>), Idempotency-Key (the delivery id, the same on every retry) and X-Qalypto-Event. Reject a timestamp older than 5 minutes and a delivery id you have already processed. Answer with any 2xx within 10 seconds; anything else is retried after 10 s, 30 s, 1 min, 5 min, 15 min, 1 h, 3 h and 6 h. We send from 46.4.120.69.

Python
1import hashlib, hmac, time
2
3def verify(secret: str, header: str, body: bytes, tolerance_s: int = 300) -> bool:
4 parts = [p.split("=", 1) for p in header.split(",") if "=" in p]
5 ts = next((int(v) for k, v in parts if k == "t" and v.isdigit()), None)
6 if ts is None or abs(time.time() - ts) > tolerance_s:
7 return False # too old: a replay
8 want = hmac.new(secret.encode(), f"{ts}.".encode() + body, hashlib.sha256).hexdigest()
9 return any(k == "v1" and hmac.compare_digest(v, want) for k, v in parts)
10
11# Flask: verify the RAW body, before parsing it
12@app.post("/qalypto")
13def qalypto():
14 if not verify(SECRET, request.headers["X-Qalypto-Signature"], request.get_data()):
15 abort(401)
16 if seen(request.headers["Idempotency-Key"]): # a retry of what you already have
17 return "", 200
18 handle(request.get_json())
19 return "", 200
Node
1const crypto = require("crypto");
2
3function verify(secret, header, rawBody, toleranceS = 300) {
4 const parts = header.split(",").map((p) => p.split("="));
5 const t = Number((parts.find(([k]) => k === "t") || [])[1]);
6 if (!t || Math.abs(Date.now() / 1000 - t) > toleranceS) return false; // too old: a replay
7 const want = crypto.createHmac("sha256", secret).update(t + ".").update(rawBody).digest("hex");
8 return parts.some(([k, v]) => k === "v1" && v && v.length === want.length &&
9 crypto.timingSafeEqual(Buffer.from(v), Buffer.from(want)));
10}
11
12// Express: keep the raw body for the check
13app.post("/qalypto", express.raw({ type: "application/json" }), (req, res) => {
14 if (!verify(SECRET, req.get("X-Qalypto-Signature"), req.body)) return res.sendStatus(401);
15 if (seen(req.get("Idempotency-Key"))) return res.sendStatus(200);
16 handle(JSON.parse(req.body));
17 res.sendStatus(200);
18});

History & Deliveries

The history of what the live engine detected, page by page with a cursor, and your own delivery log: the way to catch up on anything your systems missed.

GET /v1/signals, /v1/incidents, /v1/deliveries
1curl -H "Authorization: Bearer qk_<your-key>" "https://api.qalypto.com/v1/signals?asset=BTC&limit=100"
2# -> { "data": [ ...oldest first... ], "next_cursor": "WzE3OTQx..." } (pass ?cursor= for the next page)
3curl -H "Authorization: Bearer qk_<your-key>" "https://api.qalypto.com/v1/incidents?status=closed"
4curl -H "Authorization: Bearer qk_<your-key>" "https://api.qalypto.com/v1/incidents/<id>" # versions and hits
5curl -H "Authorization: Bearer qk_<your-key>" "https://api.qalypto.com/v1/deliveries?limit=50" # your log
6
7# One alert as it arrives (schema qalypto.alert.v1)
8{
9 "schema": "qalypto.alert.v1",
10 "delivery_id": "35e64fb535c0d20311c34f5c7796c52b",
11 "rule_id": "r_5d1c0e9a7f3b2a64", "rule_version": 2,
12 "type": "signal", "transition": "signal",
13 "event": { "id": "...", "detector": "whale_transfer", "asset": "USDT", "chain": "tron",
14 "title": "USDT: 200.00 M USDT (200.0 M USD) from Binance to an unknown wallet",
15 "score": 72, "value": 200000000.0, "unit": "usd", "facts": { "kind": "exchange_outflow", ... },
16 "evidence": [ { "table": "chain_transfer", "tx": "..." } ] },
17 "ts": { "event": 1794170000000, "detected": 1794170002100, "routed": 1794170002131 },
18 "note": "Facts only, no investment advice."
19}

Proof of Delivery

Every state of every alert we deliver to you (routed, held with its reason, sent, retried, given up) is written to an append-only log and sealed with the day, like our market data: one Merkle root per day, timestamped and anchored in Bitcoin. Each engine detection is sealed the same way, as we first saw it. From 2026-11-11 (proof layer version 2).

GET /v1/deliveries/{id}/proof returns each logged state of one of your deliveries with its path into the sealed day. The id is the one from /v1/deliveries, or the X-Qalypto-Delivery header of the alert (then every channel of it). A day is sealed in the night after it (UTC); until then the answer lists it as pending. Each proof verifies offline with the open-source verifier, without trusting or even reaching us. The row names your company only as tenant_hash = SHA-256 of qalypto-tenant| + your customer id, and the message as payload_sha256, the SHA-256 of the webhook body exactly as you received it. Other customers appear only as hashes.

GET /v1/deliveries/{id}/proof
1curl -H "Authorization: Bearer qk_<your-key>" \
2 "https://api.qalypto.com/v1/deliveries/35e64fb535c0d20311c34f5c7796c52b/proof" > proofs.json
3# -> { "proofs": [ { "day": "2026-11-12", "algo_version": 2, "venue": "qalypto", "channel": "alert_delivery",
4# "row": { "state": "sent", "attempt": "1", "payload_sha256": "...", ... },
5# "leaf_line": "...", "cell_path": [...], "super_path": [...], "super_root": "...",
6# "anchors": { "btc_block": 948123, ... } }, ... ],
7# "pending": [] }
8
9python3 -c "import json; json.dump(json.load(open('proofs.json'))['proofs'][0], open('p.json', 'w'))"
10python3 qalypto_verify.py inclusion --proof p.json # RESULT: VALID
11sha256sum webhook-body.json # = row.payload_sha256

Events API - Feed, Filters & Knowledge

Exchange notices and lists, authorities, sanctions, the calendar and media headlines, each as one event with who says it and how sure that is. Your key needs the kind event. The same events reach your systems live through alert rules on every channel (Alerts API).

EndpointReturns
GET /v1/eventsthe feed, oldest first by the time we saw each event, one page per call with next_cursor
GET /v1/events/{id}one event with every version of its story, its evidence (first sighting, hash of the original bytes) and its market reaction
GET /v1/events/{id}/proofthe event and each sighting of its evidence in the sealed day, verifiable offline
GET /v1/calendarscheduled dates: FOMC, US data releases (CPI, jobs, PPI, JOLTS, ECI, GDP, PCE), ECB and Bank of England decisions (the day), Deribit futures expiries, SEC deadlines, delivery and delisting dates
ParameterMeaning
from, totime range in ms UTC (default: the last 24 hours)
type, assetone event type, one asset ticker
venuea venue id; okx also returns OKX Europe, bybit also Bybit EU
chaina chain id; polygon also returns MATIC, POLYGON and Polygon (USDC.e) of the exchanges
as_ofwhat we knew at that moment (ms UTC): later events, story versions and measurements are left out, for backtests without look-ahead
limit, cursorpage size and the next_cursor of the previous page

Live: every new event also streams on the WebSocket (wss://api.qalypto.com/v1/stream/{client_id}, a key with the scope stream). The channel is opt-in like chain: the wildcard * stays market data. Each event comes once, however many of your subscriptions it matches, with the fields of GET /v1/events and its story.

ChannelReceives
eventsevery event, also a confirmation or another source of the same story (update: true)
events:newonly the first event of each story: what is new, nothing twice
events:<type>one event type: events:listing, events:deposit_withdrawal, events:authority, ...
events:asset:<ASSET>events on one asset: events:asset:BTC
events:venue:<venue>events of one venue id: events:venue:okx (OKX and OKX Europe)
events:chain:<chain>events on one network: events:chain:polygon

Posts on X: a few accounts whose posts came measurably earlier than every other source (an exchange's own listing and trading accounts, a protocol announcing its own incident, security researchers) or that move the market by themselves. An X event appears only when no other source had it yet; its text is ours, never the post, and it stays "not confirmed" until the exchange's list, the chain or the authority joins its story. The link to the post comes with the live stream only.

GET /v1/events
1curl -H "Authorization: Bearer qk_<your-key>" \
2 "https://api.qalypto.com/v1/events?type=deposit_withdrawal&chain=polygon&from=1795392000000"
3curl -H "Authorization: Bearer qk_<your-key>" "https://api.qalypto.com/v1/events?venue=okx&as_of=1795420000000"

Event Model

Every event has the same fields. The names of venues, chains, instruments and trading states are ours and the same for every source; what the source wrote itself stays in facts. Times are ms UTC.

FieldMeaning
idfixed id of the event (32 hex)
typelisting, delisting, delisting_scheduled, trading_state, trading_halt, deposit_withdrawal, trading_update, maintenance, incident, depeg, repeg, news, authority, sanction, reminder
stateobserved (seen in the official list), announced (said by the exchange or the authority), reported (written by a medium, never stated as fact), scheduled (a date ahead), measured (from prices)
sourcewhere we read it, for example okx.coins, sec.press, media.ft
venuesvenue ids: binance, bybit, okx, bitget, hyperliquid, deribit, coinbase, kraken, bitstamp, upbit, bithumb
venue_infoeach venue with region (eu for OKX Europe and Bybit EU) and its printed name
chainthe chain id of a network event (deposits and withdrawals on one network, an SDN entry on one chain), else null
marketfor instrument events: symbol, kind (perpetual, future, spot), quote, expiry, tradfi (a perpetual on a share or an index), state and previous state
assetthe ticker of the asset as the venue lists it; for a company with a share perpetual on Binance (NVDA, COIN, MSTR) its share ticker: its 8-K at the SEC and headlines on a company event, with facts.company and facts.company_name
score0 to 100: how much such an event usually matters
ts_event, ts_detectthe source's own time, and when we had it
text_en, text_dethe message, always with its source and state
evidenceids of the evidence the event was made from
storythe story it belongs to: one row for all reports of one thing; confirmed only by the other primary source (the exchange's list and its notice, or an authority for a media story)
impactGET /v1/events/{id}: pending, measuring, measured, inconclusive, or not_measured with its reason (no asset, a stablecoin, a peg event)

Facts per Type

The values as the source wrote them, all as text. Times in facts are ms UTC as text.

TypeFacts
deposit_withdrawalcoin, chain (the exchange's network code), deposit and withdraw (open or suspended); a whole network: scope network, chain, count, coins; from a notice: title, category
listing, delistingfrom a list: symbol, contract, trading_state, market (a new or removed market); from a notice: title, category
delisting_scheduledsymbol, contract, trading_state, field (delivery_ms, expiry_ms, off_ms or limit_open_ms); ts_event is the date set
trading_state, trading_haltsymbol, contract, trading_state, previous
trading_updatetitle, category
maintenancemaintenance_state as the exchange writes it (for example scheduled, ongoing), begin, end; Binance: status; Deribit: status (open, partially locked, locked) and locked_indices; from a notice: title, category
incidentincident_status (investigating, identified, monitoring, resolved), impact
depeg, repegdirection, venues, bands (how far from the peg, per venue)
news, authoritytitle, lang, publisher, source_name, topics
sanctionuid, name, sdn_type, programs, added (the new addresses), count, chains, our_chains, new_entry
remindercalendar_id, kind, due, precision, title

Venues, Chains & States

One name for the same thing, whatever the exchange calls it. Ethereum is ERC20 at Bitget and OKX and ETH at Binance: here it is always eth, the id of our chain data. A network code we do not know yet becomes its own key (letters and digits, lower case), so two spellings of it still meet.

Chain idCodes of the exchanges (examples)
btc, eth, tronBitcoin; ERC20, ETH; TRC20, TRX (the ids of our chain data)
bscBEP20, BSC, BNB Smart Chain
polygonPOLYGON, Polygon, MATIC, Polygon (USDC.e)
avalancheAVAXC, AVAXC-Chain, Avalanche C-Chain
arbitrum, optimism, baseArbitrumOne, Arbitrum One; OPTIMISM, Optimism (USDT0); BASE
solana, sui, aptos, xrp, tonSOL, Solana; SUI; Aptos, APT; XRP; TON
market.stateCodes of the exchanges
pre_openPENDING_TRADING, PendingOpen, PreLaunch, preopen, listed
tradingTRADING, Trading, live, normal, online, open
post_only, limit_only, reduce_only, cancel_onlypost_only; limit_only; reduce_only, limit_open; TRADING_CANCEL_ONLY, cancel_only
haltedTRADING_HALT, suspend, maintain
settlingSETTLING, DELIVERING, PRE_SETTLE
delistedCLOSE, Closed, off, delisted, trading_disabled
warninginvestment_warning (Upbit and Bithumb)
otheranything new; the raw value stays in facts.trading_state

Trade Data

Trade messages contain individual trade executions:

Trade Message
1{
2 "type": "trade",
3 "symbol": "SOLUSDT",
4 "timestamp": "2026-03-02T14:01:45.300327",
5 "data": {
6 "_timestamps": {
7 "websocket_sent": 1772460105301,
8 "exchange_event_time": 1772460105100
9 },
10 "timestamp": "2026-03-02 14:01:45.100000",
11 "exchange": "binance",
12 "symbol": "SOLUSDT",
13 "price": 82.98,
14 "amount": 0.75,
15 "side": "sell",
16 "trade_id": "3198735563",
17 "is_liquidation": false
18 },
19 "producer_received": 1772460105224.0476
20}

Ticker Data

Ticker messages contain current price and volume information:

Ticker Message
1{
2 "type": "ticker",
3 "symbol": "SOLUSDT",
4 "timestamp": "2026-03-02T14:01:45.309347",
5 "data": {
6 "_timestamps": {
7 "websocket_sent": 1772460105313,
8 "exchange_event_time": 1772460105138
9 },
10 "timestamp": "2026-03-02 14:01:45.138000",
11 "exchange": "bybit",
12 "symbol": "SOLUSDT",
13 "last_price": 82.98,
14 "bid_price": 82.98,
15 "ask_price": 82.99,
16 "bid_size": 312.7,
17 "ask_size": 455.4,
18 "high_24h": 86.84,
19 "low_24h": 81.63,
20 "volume_24h": 15414549.2,
21 "quote_volume_24h": 1292880761.203,
22 "open_24h": null,
23 "funding_rate": -5.129e-05,
24 "next_funding_time": "2026-03-02 16:00:00+00:00",
25 "mark_price": 82.989,
26 "index_price": 83.051,
27 "open_interest": 6893141.2,
28 "open_interest_value": null
29 },
30 "producer_received": 1772460105223.4756
31}

Kline Data

Kline (candlestick) messages contain OHLCV data. Note: interval is also available as a top-level field for convenient filtering without parsing data.

Kline Message
1{
2 "type": "kline",
3 "symbol": "DOGEUSDT",
4 "timestamp": "2026-03-02T14:01:45.299305",
5 "data": {
6 "_timestamps": {
7 "websocket_sent": 1772460105300,
8 "exchange_event_time": 1772460000000
9 },
10 "timestamp": "2026-03-02 14:00:00",
11 "exchange": "binance",
12 "symbol": "DOGEUSDT",
13 "interval": "1h",
14 "open": 0.0909,
15 "high": 0.09093,
16 "low": 0.09083,
17 "close": 0.09083,
18 "volume": 4784283.0,
19 "quote_volume": 434786.04922,
20 "num_trades": 1314,
21 "close_time": "2026-03-02 14:59:59.999000",
22 "is_final": false
23 },
24 "interval": "1h",
25 "producer_received": 1772460105128.6987
26}

Orderbook Data

Orderbook messages contain bid/ask depth:

Orderbook Message
1{
2 "type": "orderbook",
3 "symbol": "XRPUSDT",
4 "timestamp": "2026-03-02T14:01:45.275758",
5 "data": {
6 "_timestamps": {
7 "websocket_sent": 1772460105301,
8 "exchange_event_time": 1772460105156
9 },
10 "timestamp": "2026-03-02 14:01:45.156000",
11 "exchange": "bybit",
12 "symbol": "XRPUSDT",
13 "bids": [
14 [1.3388, 1000.0],
15 [1.3387, 2500.0],
16 [1.3386, 1800.0]
17 ],
18 "asks": [
19 [1.3389, 800.0],
20 [1.3390, 1500.0],
21 [1.3391, 2200.0]
22 ],
23 "is_snapshot": true,
24 "sequence_id": "233916094713"
25 },
26 "producer_received": 1772460105157.5078
27}

Liquidation Data

Liquidation messages report forced position closures on the exchange. liquidated_side is the side of the position that was liquidated (a liquidated short produces a forced buy). bankruptcy_price is only provided by some venues and is null otherwise. Liquidations are sparse events: expect seconds to minutes between messages, not a continuous stream.

Liquidation Message
1{
2 "type": "liquidation",
3 "symbol": "ETHUSDT",
4 "timestamp": "2026-07-14T11:02:35.912467",
5 "data": {
6 "_timestamps": {
7 "websocket_sent": 1784027755914,
8 "exchange_event_time": 1784027755759
9 },
10 "timestamp": "2026-07-14 11:02:35.759000",
11 "exchange": "bybit",
12 "symbol": "ETHUSDT",
13 "liquidated_side": "short",
14 "price": 1804.99,
15 "amount": 0.24,
16 "bankruptcy_price": 1804.99,
17 "is_snapshot": false
18 },
19 "producer_received": 1784027755803.2841
20}

Best Practices

Heartbeat (Critical!)

  • Always respond to server pings with pong - Connection will be closed after 60s without response
  • When you receive {"type": "ping"}, immediately send {"action": "pong"}
  • Do NOT rely on library-level ping/pong - our server uses JSON messages
  • Server sends ping every 20 seconds

Connection Management

  • Use a single WebSocket connection per application
  • Implement automatic reconnection with exponential backoff (1s, 2s, 4s, 8s...)
  • Handle connection drops gracefully - re-subscribe after reconnect
  • Store your subscriptions locally to restore them after reconnect
  • Server does not persist subscriptions - always re-subscribe after reconnect

Performance & Backpressure

  • Subscribe only to the channels you need - avoid wildcard (*) in production
  • Use symbol-specific channels to reduce data volume
  • Process messages asynchronously - never block the WebSocket receive loop
  • Use a message queue if processing is slow - drop old messages if queue is full
  • Monitor your processing latency - if you fall behind, you may get disconnected
  • Expected throughput: 500-800 msg/s depending on market activity

Error Handling

  • Handle {"error": "..."} messages gracefully
  • Rate limit errors: Back off and retry after 1 second
  • Connection closed unexpectedly: Reconnect with exponential backoff
  • Invalid JSON: Log and skip the message, don't crash
  • Unknown message types: Ignore them - we may add new types in the future

Security

  • Never expose your credentials in client-side code
  • Use environment variables for credentials
  • Rotate credentials if compromised
  • Use unique client_id per connection for debugging

Rate Limits

Current rate limits for the WebSocket API:

Connections per accountConfigured per contract (contact sales)
Subscriptions per connection50
Control messages per second5
Server ping interval20 seconds
Pong timeout (disconnect)60 seconds
Max connection durationNo limit

Control messages include subscribe, unsubscribe, ping, pong, and status requests. Need higher limits? Contact us at info@qalypto.com

© 2026 Qalypto. All rights reserved.

Questions? Contact us at info@qalypto.com