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

Get time weighted notional position

GET 

/api/v2/time-weighted-notional-position

Get the time weighted notional position for a given party and asset. The time weighted notional position is used to check if a party qualifies for a reward. If no epoch is specified, the final time weighted notional position from the end of the most recently completed epoch is returned. If an epoch is specified, the final time weighted notional position at that epoch is returned.

Request

Query Parameters

    assetId string

    Asset ID to filter for.

    partyId string

    Party ID to filter for.

    gameId string

    Game ID to filter for.

    atEpoch uint64

    Epoch to filter for.

Responses

A successful response.

Schema
    timeWeightedNotionalPosition object

    Time weighted notional position for the party and asset.

    assetId string

    Asset ID for the settlement asset associated with the position.

    atEpoch uint64

    Epoch at which the time weighted notional position is calculated.

    gameId string

    Game ID for the game associated with the position.

    lastUpdated int64

    Vega time of the block in which the last position update occurred.

    partyId string

    Party ID for the party associated with the position.

    timeWeightedNotionalPosition string

    Time weighted notional position for the party and asset.

Loading...