Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 3.26 KB

Position.md

File metadata and controls

42 lines (34 loc) · 3.26 KB

Position

Properties

Name Type Description Notes
user number User ID [optional] [readonly] [default to undefined]
contract string Futures contract [optional] [readonly] [default to undefined]
size number Position size [optional] [readonly] [default to undefined]
leverage string Position leverage. 0 means cross margin; positive number means isolated margin [optional] [default to undefined]
riskLimit string Position risk limit [optional] [default to undefined]
leverageMax string Maximum leverage under current risk limit [optional] [readonly] [default to undefined]
maintenanceRate string Maintenance rate under current risk limit [optional] [readonly] [default to undefined]
value string Position value calculated in settlement currency [optional] [readonly] [default to undefined]
margin string Position margin [optional] [default to undefined]
entryPrice string Entry price [optional] [readonly] [default to undefined]
liqPrice string Liquidation price [optional] [readonly] [default to undefined]
markPrice string Current mark price [optional] [readonly] [default to undefined]
initialMargin string The initial margin occupied by the position, applicable to the portfolio margin account [optional] [readonly] [default to undefined]
maintenanceMargin string Maintenance margin required for the position, applicable to portfolio margin account [optional] [readonly] [default to undefined]
unrealisedPnl string Unrealized PNL [optional] [readonly] [default to undefined]
realisedPnl string Realized PNL [optional] [readonly] [default to undefined]
historyPnl string History realized PNL [optional] [readonly] [default to undefined]
lastClosePnl string PNL of last position close [optional] [readonly] [default to undefined]
realisedPoint string Realized POINT PNL [optional] [readonly] [default to undefined]
historyPoint string History realized POINT PNL [optional] [readonly] [default to undefined]
adlRanking number Ranking of auto deleveraging, a total of 1-5 grades, `1` is the highest, `5` is the lowest, and `6` is the special case when there is no position held or in liquidation [optional] [readonly] [default to undefined]
pendingOrders number Current open orders [optional] [readonly] [default to undefined]
closeOrder PositionCloseOrder [optional] [default to undefined]
mode string Position mode, including: - `single`: dual mode is not enabled- `dual_long`: long position in dual mode- `dual_short`: short position in dual mode [optional] [default to undefined]
crossLeverageLimit string Cross margin leverage(valid only when `leverage` is 0) [optional] [default to undefined]
updateTime number Last update time [optional] [readonly] [default to undefined]

Enum: Position.Mode

  • Single (value: 'single')

  • DualLong (value: 'dual_long')

  • DualShort (value: 'dual_short')