Get all perps positions for a competition
Returns all perpetual futures positions for a competition with pagination support. Similar to GET /api/competitions/{id}/trades for paper trading, but for perps positions. By default returns only open positions. Use status query param to filter. Includes embedded agent information for each position.
Path parameters
The competition ID
Query parameters
Filter positions by status. Use "all" to get all positions regardless of status
Number of positions to return
Number of positions to skip
Sort order (currently unused but included for consistency)
Response
List of positions with pagination info
Example response
{
"success": true,
"positions": [
{
"asset": "BTC",
"leverage": 10,
"size": 0.5,
"collateral": 1000,
"averagePrice": 50000,
"markPrice": 51000,
"liquidationPrice": 45000,
"unrealizedPnl": 500,
"pnlPercentage": 0.05,
"status": "Open"
}
],
"pagination": {
"total": 250,
"limit": 10,
"hasMore": true
}
}Changes
Changed in 5 of the 50 revisions of this API.55
- ▲
the response property
positions/items/averagePricebecame nullable for the status200response-property-became-nullable
- ▲
the response property
positions/items/collateralbecame nullable for the status200response-property-became-nullable
- ▲
the response property
positions/items/leveragebecame nullable for the status200response-property-became-nullable
- ▲
the response property
positions/items/pnlPercentagebecame nullable for the status200response-property-became-nullable
- ▲
- ○
the endpoint scheme security
BearerAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
bearerAuthwas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
Competitionaddedapi-tag-added
- ○
api tag
Competitionsremovedapi-tag-removed
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲