LiquidablePositions gets all the liquidable positions.
OK response.
List of derivative positions
const response = await fetch('https://inj-indexer.nownodes.io/api/exchange/derivative/v1/liquidablePositions', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"positions": [
{
"aggregateReduceOnlyQuantity": "0",
"createdAt": 1544614248000,
"direction": "long",
"entryPrice": "15333333.333333333333333333",
"liquidationPrice": "23420479",
"margin": "77000000",
"markPrice": "14000000",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"quantity": "9",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"ticker": "INJ/USDT-PERP",
"updatedAt": 1544614248000
},
{
"aggregateReduceOnlyQuantity": "0",
"createdAt": 1544614248000,
"direction": "long",
"entryPrice": "15333333.333333333333333333",
"liquidationPrice": "23420479",
"margin": "77000000",
"markPrice": "14000000",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"quantity": "9",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"ticker": "INJ/USDT-PERP",
"updatedAt": 1544614248000
},
{
"aggregateReduceOnlyQuantity": "0",
"createdAt": 1544614248000,
"direction": "long",
"entryPrice": "15333333.333333333333333333",
"liquidationPrice": "23420479",
"margin": "77000000",
"markPrice": "14000000",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"quantity": "9",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"ticker": "INJ/USDT-PERP",
"updatedAt": 1544614248000
},
{
"aggregateReduceOnlyQuantity": "0",
"createdAt": 1544614248000,
"direction": "long",
"entryPrice": "15333333.333333333333333333",
"liquidationPrice": "23420479",
"margin": "77000000",
"markPrice": "14000000",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"quantity": "9",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"ticker": "INJ/USDT-PERP",
"updatedAt": 1544614248000
}
]
}