curl --request GET \
--url http://localhost:14400/api/positions \
--header 'Authorization: Bearer <token>'
[
{
"symbol": "<string>",
"side": "long",
"size": 123,
"entryPrice": 123,
"markPrice": 123,
"pnl": 123,
"pnlPercent": 123
}
]
Get all open positions for the authenticated user
curl --request GET \
--url http://localhost:14400/api/positions \
--header 'Authorization: Bearer <token>'
[
{
"symbol": "<string>",
"side": "long",
"size": 123,
"entryPrice": 123,
"markPrice": 123,
"pnl": 123,
"pnlPercent": 123
}
]
Dynamic authentication JWT token
List of positions
The response is of type object[]
.