Last updated 5 months ago
const response = await fetch('/v1/private/positions?collateralId=text', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "marketId": "text", "direction": "LONG", "avgExecutionPrice": 0, "size": 0, "marginAmount": 0, "borrowedAmount": 0, "leverage": 0, "realizedPnl": 0, "liquidationPrice": 0, "maintenanceMargin": 0 } ]