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

List team members' statistics

GET 

/api/v2/teams/:teamId/stats

Get the statistics for all members of a given team, or for a specific member by using party ID, over a number of epochs. If a team does not have at least the number of epochs' worth of data, it is ignored.

Request

Path Parameters

    teamId stringrequired

    Restrict team statistics to those with the given team ID.

Query Parameters

    partyId string

    Restrict team members' statistics to those with the given party ID.

    aggregationEpochs uint64

    Defines the number of past epochs to aggregate data from. By default, it takes the last 10 epochs.

    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

    Whether to order the results with the newest records first. If not set, the default value is true.

Responses

A successful response.

Schema
    statistics object

    Page of team members' statistics data and corresponding page information.

    edges object[]

    Page of team member data and their corresponding cursors.

  • Array [
  • cursor string

    Cursor that can be used to fetch further pages.

    node object

    Team member's statistics data.

    gamesPlayed string[]

    List of games played over the requested epoch period.

    partyId string

    Party ID the statistics are related to.

    quantumRewards object[]

    List of rewards over the requested epoch period, expressed in quantum value for each epoch.

  • Array [
  • epoch uint64

    Epoch for which this information is valid.

    totalQuantumRewards string

    Total rewards accumulated over the epoch period, expressed in quantum value.

  • ]
  • quantumVolumes object[]

    List of volumes over the requested epoch period, expressed in quantum value for each epoch.

  • Array [
  • epoch uint64

    Epoch for which this information is valid.

    totalQuantumVolumes string

    Total volumes accumulated over the epoch period, expressed in quantum value.

  • ]
  • totalGamesPlayed uint64

    Total number of games played.

    totalQuantumRewards string

    Total of rewards accumulated over the requested epoch period, expressed in quantum value.

    totalQuantumVolume string

    Total of volume accumulated over the requested epoch period, expressed in quantum value.

  • ]
  • pageInfo object

    Page information that is used for fetching further pages.

    endCursor string

    End cursor.

    hasNextPage boolean

    Indicator if there is a next page.

    hasPreviousPage boolean

    Indicator if there is a previous page.

    startCursor string

    Start cursor.

Loading...