cURL
curl --request GET \ --url https://unidexv4-api-production.up.railway.app/api/positions
{ "posIds": [ "<string>" ], "positions": [ { "posId": "<string>", "size": 123, "margin": 123, "isLong": true, "entryPrice": 123, "leverage": 123 } ], "orders": [ {} ], "triggers": [ {} ], "paidFees": [ {} ], "accruedFees": [ {} ] }
Retrieve all active positions for a user
posId
size
margin
isLong
entryPrice
leverage
curl "https://unidexv4-api-production.up.railway.app/api/positions?address=0x1234..."
Ethereum address of the user
Successful response
Array of position IDs
Array of position details
Show child attributes
Array of order objects
Array of trigger objects
Array of paid fees objects
Array of accrued fees objects