Position
exchange: Exchange
β
Exchange
e.g. Binance
pair: string
β
Pair name
e.g. BTC/USDT
position_side: string
β
Position Side
e.g. LONG, SHORT
total_size: float
β
Total Size
e.g. 1.0
available_size: float
β
Available Size
When closing a LONG position with a LIMIT order, available size will decrement to prevent over-closing while total size will remain the same before the LIMIT order is FILLED
e.g. 0.5
entry_price: float
β
Entry price
e.g. 1500
mark_price: float
β
Mark price (use market price)
e.g. 1500
margin: float
β
Margin
e.g. 1500
liquidation_price: float
β
Liquidation price
e.g. 100
profit_and_loss: float
β
Profit and loss
e.g. 10