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
/historyto fetch a specific past time range. - Use
/liveafter your backfill is caught up, when you want new events only.
Parameters
| Param | Type | Description | |
|---|---|---|---|
| exchange | string | required | Venue exchange name (e.g. binance, bybit, okx, coinbase). |
| market | string | required | Market type (spot or perpetual). |
| symbol | string | required | Exchange symbol. |
| event_type | string | required | ohlcv or funding_rate. |
| interval | string | optional | OHLCV 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])