Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.75 KB

File metadata and controls

27 lines (20 loc) · 1.75 KB

PositionClose

Properties

Name Type Description Notes
time number Position close time [optional] [readonly] [default to undefined]
contract string Futures contract [optional] [readonly] [default to undefined]
side string Position side - `long`: Long position - `short`: Short position [optional] [readonly] [default to undefined]
pnl string PnL [optional] [readonly] [default to undefined]
pnlPnl string PNL - Position P/L [optional] [readonly] [default to undefined]
pnlFund string PNL - Funding Fees [optional] [readonly] [default to undefined]
pnlFee string PNL - Transaction Fees [optional] [readonly] [default to undefined]
text string Source of close order. See `order.text` field for specific values [optional] [readonly] [default to undefined]
maxSize string Max Trade Size [optional] [readonly] [default to undefined]
accumSize string Cumulative closed position volume [optional] [readonly] [default to undefined]
firstOpenTime number First Open Time [optional] [readonly] [default to undefined]
longPrice string When side is 'long', it indicates the opening average price; when side is 'short', it indicates the closing average price [optional] [readonly] [default to undefined]
shortPrice string When side is 'long', it indicates the closing average price; when side is 'short', it indicates the opening average price [optional] [readonly] [default to undefined]

Enum: PositionClose.Side

  • Long (value: 'long')

  • Short (value: 'short')