Skip to main content
Version: testnet (v0.71)

List positions

Get a list of positions by party's public key using cursor based pagination

Query Parameters
    filter.partyIds string[]

    List of party IDs to filter on.

    filter.marketIds string[]

    List of market IDs to filter on.

    pagination.first int32

    Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.

    pagination.after string

    If paging forwards, the cursor string for the last row of the previous page.

    pagination.last int32

    Number of records to be returned that sort less than row identified by cursor supplied in 'before'.

    pagination.before string

    If paging forwards, the cursor string for the first row of the previous page.

    pagination.newestFirst boolean

    Newest records first, older records last, default is true.

Responses

A successful response.


Schema
    positions object

    Page of positions data and corresponding page information.

    edges object[]

    Page of positions data and their corresponding cursors.

    cursor string
    node object

    Represents position data for a party on the specified market on Vega.

    averageEntryPrice string
    lossSocialisationAmount string
    marketId string
    openVolume int64
    partyId string
    positionStatus Represents the status of a position

    Possible values: [POSITION_STATUS_UNSPECIFIED, POSITION_STATUS_ORDERS_CLOSED, POSITION_STATUS_CLOSED_OUT, POSITION_STATUS_DISTRESSED]

    realisedPnl string
    unrealisedPnl string
    updatedAt int64
    pageInfo object

    Page information that is used for fetching further pages.

    endCursor string
    hasNextPage boolean
    hasPreviousPage boolean
    startCursor string
Loading...