I am receiving a WebSocket event on wss://fstream.binance.com/ws/******** about a new futures position on my account.
Example response:
“orderId”: 143859149586,
“symbol”: “BTCUSDT”,
“status”: “FILLED”,
“clientOrderId”: “”,
“price”: “0”,
“avgPrice”: “28900.80000”,
“origQty”: “0.011”,
“executedQty”: “0.011”,
“cumQuote”: “317.90880”,
“timeInForce”: “GTC”,
“type”: “MARKET”,
“reduceOnly”: true,
“closePosition”: false,
“side”: “BUY”,
“positionSide”: “BOTH”,
“stopPrice”: “0”,
“workingType”: “CONTRACT_PRICE”,
“priceProtect”: false,
“origType”: “MARKET”,
“time”: 1682505608859,
“updateTime”: 1682505608859
Question:
How can I retrieve the leverage and the margin size set in the position from the response?