Position Information
Position information is available through:entry_pricemark_priceunrealised_pnlrealised_pnlmargin_modeinitial_marginmaintenance_marginleverageliq_pricefunding
Margin Mode
Ekiden currently supports Cross Margin only. In Cross Margin mode:- Margin is shared across all positions within the trading account.
- Available account equity may be used to prevent liquidation.
- Liquidation risk is evaluated using the account’s available margin.
margin_mode field.
Multi-asset collateral
When a trading account holds collateral other than USDCx, each asset counts at a weight of its value:- Buying power uses the initial weight (
initial_total_collateral). An asset gives buying power only while it is active and freshly priced. - Liquidation uses the maintenance weight (
maintenance_total_collateral, andequity). Collateral on hold for a withdrawal is excluded. - Losses and funding are taken from USDCx, then stablecoins in
liquidation_priorityorder. Volatile collateral is never spent: the rest becomesdebt, which liquidation clears by selling volatile collateral at itsliquidation_discount. - Closed markets: while an asset’s
market_sessionisclosed, it gives no buying power and counts at its frozen price lessclosed_market_haircut.
Risk Fields
Position responses include the following risk-related fields:initial_marginmaintenance_marginleverageliq_price
Funding
Funding-related information is available through:- Position responses (
funding) - Funding Rate History: