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

Get volume rebate statistics

GET 

/api/v2/volume-rebate-programs/stats

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

Request

Query Parameters

    atEpoch uint64

    Epoch to get volume rebate 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 rebate statistics for an epoch.

    edges object[]

    Page of volume rebate statistics data and their corresponding cursors.

  • Array [
  • cursor string

    Cursor that can be used to fetch further pages.

    node object

    Volume rebate stats data.

    additionalMakerRebate string

    Rebate factor applied given the party's running volume fracation.

    atEpoch uint64

    Epoch at which the statistics apply.

    makerFeesReceived string

    The party's total maker fees received over the relevant window.

    makerVolumeFraction string

    The party's volume fraction.

    partyId string

    Party ID for which the statistics apply.

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