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

Get volume discount statistics

GET 

/api/v2/volume-discount-programs/stats

Get the information about a party's running traded volume, and the discount factor it earns them.

Request

Query Parameters

    atEpoch uint64

    Epoch to get volume discount statistics for. If not set, last epoch is used.

    partyId string

    Restrict volume discount statistics to those for the given party.

    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
    stats object

    Volume discount statistics for an epoch.

    edges object[]

    Page of volume discount statistics data and their corresponding cursors.

  • Array [
  • cursor string

    Cursor that can be used to fetch further pages.

    node object

    Volume discount stats data.

    atEpoch uint64

    Epoch at which the statistics apply.

    discountFactor string

    Discount factor applied given the party's running volume.

    partyId string

    Party ID for which the statistics apply.

    runningVolume string

    The party's running volume.

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