WS /api/v1/live Bearer

Subscribe to new events as they arrive.

Live is a WebSocket tail. It starts at connect time, keeps the connection open, and sends future events for one exchange/market/symbol/event type. It does not take start or end.

First frame is always a connection confirmation: {"type":"connected", ...}. Later frames are data rows with the same shape as one item from /history's data[]. Data rows do not carry a type field, so the confirmation is easy to separate from market data.

Reconnect does not replay missed events. On reconnect, call /history from your last seen event time to now, then open live again.

History vs Live

  • Use /history to fetch a specific past time range.
  • Use /live after your backfill is caught up, when you want new events only.

Parameters

ParamTypeDescription
exchangestringrequiredVenue exchange name (e.g. binance, bybit, okx, coinbase).
marketstringrequiredMarket type (spot or perpetual).
symbolstringrequiredExchange symbol.
event_typestringrequiredohlcv or funding_rate.
intervalstringoptionalOHLCV only. Defaults to 1m when omitted; use /history for interval-specific backfills.

Try it

import requests

params = {
    "exchange": "binance",
    "market": "perpetual",
    "symbol": "BTCUSDT",
    "event_type": "ohlcv",
    "interval": "1m",
    "start": "2024-01-01",
    "end": "2024-02-01",
}
r = requests.get(
    "https://dackta.com/api/v1/history",
    params=params,
    headers={"Authorization": "Bearer YOUR_TOKEN"},
)
r.raise_for_status()
print(r.json()["data"][:5])