Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ekiden.fi/llms.txt

Use this file to discover all available pages before exploring further.

Subscribe to auto-deleveraging alert snapshots for a symbol.
  • Topic: adl_alert.<symbol> (e.g., adl_alert.BTC-USDC)
  • Stream: Public (wss://api.ekiden.fi/ws/public)

Subscribe

{ "op": "subscribe", "args": ["adl_alert.BTC-USDC"], "req_id": "107001" }
Ack:
{ "op": "subscribed", "args": ["adl_alert.BTC-USDC"], "req_id": "107001" }

Events

Messages arrive with op: "event", topic: "adl_alert.<symbol>", and data containing an AdlAlertSnapshot. Example:
{
	"op": "event",
	"topic": "adl_alert.BTC-USDC",
	"server_ts_ms": 1731541800000,
	"data": {
		"pool_id": "BTC-USDC",
		"pool_group_id": "perps",
		"symbol": "BTC-USDC",
		"adl_mode": "Elevated",
		"adl_trigger_reason": "pool_drawdown",
		"latest_pnl_ratio": "-0.0325",
		"equity": "925000",
		"updated_time": 1731541800000
	}
}
Field notes:
  • Numeric equity and ratio values are strings to preserve precision.
  • updated_time and server_ts_ms are Unix milliseconds.
  • adl_trigger_reason and latest_pnl_ratio may be null when there is no active trigger.
See schema details in AsyncAPI: AdlAlertSnapshot.