- Topic:
position - Stream: Private (
wss://api.ekiden.fi/ws/private)
Authenticate
Use authentication flow described in the Connect page.Subscribe
Events
Messages arrive withop: "event", topic: "position", and data is an array of Position.
Example:
- Numeric values are encoded as strings to preserve precision.
- Times (
created_time,updated_time) are Unix milliseconds (encoded as strings).
Fields
| Field | Type | Notes |
|---|---|---|
| risk_id | integer | Risk tier ID |
| risk_limit_value | string | Risk limit value |
| symbol | string | Symbol name |
| sub_account_address | string | Sub-account address |
| side | string | Buy (long) or Sell (short) |
| size | string | Position size (always positive) |
| avg_price | string | Average entry price |
| position_value | string | Position value |
| margin_mode | string | Cross or Isolated |
| position_balance | string | Position margin |
| position_status | string | Normal, Liq, Adl |
| leverage | string | Position leverage |
| mark_price | string | Mark price |
| liq_price | string | Liquidation price |
| bust_price | string | Bankruptcy price |
| position_im | string | Initial margin |
| position_im_by_mp | string | Initial margin (mark price) |
| position_mm | string | Maintenance margin |
| position_mm_by_mp | string | Maintenance margin (mark price) |
| take_profit | string or null | Take profit price |
| stop_loss | string or null | Stop loss price |
| trailing_stop | string or null | Trailing stop distance |
| unrealized_pnl | string | Unrealized PnL (mark) |
| unrealized_funding | string | Net unsettled funding PnL |
| realized_pnl_cur | string | Current realized PnL since position creation |
| realized_pnl_cum | string | Cumulative realized PnL |
| cum_funding | string | Net realized funding PnL |
| adl_rank_indicator | string | Auto-deleverage rank |
| is_reduce_only | boolean | Reduce-only flag |
| created_time | string | Created time (ms) |
| updated_time | string | Updated time (ms) |
| seq | integer | Cross sequence |
| mmr_sys_update_time | string or null | System MM update time (ms) |
| leverage_sys_updated_time | string or null | System leverage update time (ms) |
Position.