List positions
Get a list of positions by party's public key using cursor based pagination
Query Parameters
List of party IDs to filter on.
List of market IDs to filter on.
Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.
If paging forwards, the cursor string for the last row of the previous page.
Number of records to be returned that sort less than row identified by cursor supplied in 'before'.
If paging forwards, the cursor string for the first row of the previous page.
Newest records first, older records last, default is true.
- 200
- 500
- default
A successful response.
Schema
positions object
Page of positions data and corresponding page information.
edges object[]
Page of positions data and their corresponding cursors.
node object
Represents position data for a party on the specified market on Vega.
Possible values: [POSITION_STATUS_UNSPECIFIED
, POSITION_STATUS_ORDERS_CLOSED
, POSITION_STATUS_CLOSED_OUT
, POSITION_STATUS_DISTRESSED
]
pageInfo object
Page information that is used for fetching further pages.
{
"positions": {
"edges": [
{
"cursor": "string",
"node": {
"averageEntryPrice": "string",
"lossSocialisationAmount": "string",
"marketId": "string",
"openVolume": "string",
"partyId": "string",
"positionStatus": "POSITION_STATUS_UNSPECIFIED",
"realisedPnl": "string",
"unrealisedPnl": "string",
"updatedAt": "string"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
An internal server error
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}