Trading
Get Positions
Changed onGet current positions across all or filtered perpetual connectors.
This endpoint fetches real-time position data directly from the connectors, including unrealized PnL, leverage, funding fees, and margin information.
Args: filter_request: JSON payload with filtering criteria
Returns: Paginated response with position data and pagination metadata
Raises: HTTPException: 500 if there's an error fetching positions
post/trading/positions
Request
- Base URLhttp://localhost:8000
- URLhttp://localhost:8000/trading/positions
- AuthHTTP basic
Request body
Response
Successful Response
Example response
{
"data": [],
"pagination": {
"has_more": true,
"limit": 100,
"next_cursor": "2024-01-10T12:00:00",
"total_count": 500
}
}Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
endpoint added
- info