Skip to main content
Version: pre-release (v0.79)

List teams statistics

GET 

/api/v2/teams/stats

Get the statistics of all teams, or for a specific team by using team 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

Query Parameters

    teamId string

    Restrict team statistics to those with the given team 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 teams' statistics data and corresponding page information.

    edges object[]

    Page of team data and their corresponding cursors.

  • Array [
  • cursor string

    Cursor that can be used to fetch further pages.

    node object

    Team's statistics data.

    gamesPlayed string[]

    List of games played over the requested epoch period.

    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.

  • ]
  • teamId string

    Team ID the statistics are related to.

    totalGamesPlayed uint64

    Total 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...