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

List game team scores

GET 

/api/v2/games/team-scores

Get a list of team scores for the given filters

Request

Query Parameters

    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.

    filter.gameIds string[]

    Restrict game scores to the given ones.

    filter.teamIds string[]

    Restrict game scores to those for the given teams.

    filter.epochFrom uint64

    Restrict game scores to those from a given epoch.

    filter.epochTo uint64

    Restrict game scores to those up to a given epoch.

Responses

A successful response.

Schema
    teamScores object

    Page of team game scores data and corresponding page information.

    edges object[]

    Page of orders and their corresponding cursors.

  • Array [
  • cursor string

    Cursor that can be used to fetch further pages.

    node object

    Data associated with an order submitted to a Vega node.

    epoch int64

    Epoch when these scores were generated.

    gameId string

    Game ID.

    score string

    Team's current collective score in the game.

    teamId Team ID (string)
    time int64

    Timestamp in Unix nanoseconds when these scores were generated.

  • ]
  • 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...