Get fees statistics
GEThttps://vega-data.nodes.guru:3008/api/v2/fees/stats
Get accumulated fees, rewards, and applied discount information. Either a market or an asset must be supplied as filter.
Request
Query Parameters
marketId string
Restrict fee statistics to those related for the given market.
assetId string
Restrict fee statistics to those related for the given asset.
epochSeq uint64
Epoch to get referral fee statistics for. If not set, the last complete epoch is used.
partyId string
Restrict fee statistics to those for the given party.
Responses
- 200
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
feesStats object
{
"feesStats": {
"asset": "string",
"epochSeq": "string",
"makerFeesGenerated": [
{
"makerFeesPaid": [
{
"amount": "string",
"party": "string",
"quantumAmount": "string"
}
],
"taker": "string"
}
],
"market": "string",
"refereesDiscountApplied": [
{
"amount": "string",
"party": "string",
"quantumAmount": "string"
}
],
"referrerRewardsGenerated": [
{
"generatedReward": [
{
"amount": "string",
"party": "string",
"quantumAmount": "string"
}
],
"referrer": "string"
}
],
"totalFeesPaidAndReceived": [
{
"amount": "string",
"party": "string",
"quantumAmount": "string"
}
],
"totalMakerFeesReceived": [
{
"amount": "string",
"party": "string",
"quantumAmount": "string"
}
],
"totalRewardsReceived": [
{
"amount": "string",
"party": "string",
"quantumAmount": "string"
}
],
"volumeDiscountApplied": [
{
"amount": "string",
"party": "string",
"quantumAmount": "string"
}
]
}
}
An internal server error
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
- curl
- python
- go
- nodejs
- CURL
curl -L -X GET 'https://vega-data.nodes.guru:3008/api/v2/fees/stats' \
-H 'Accept: application/json'
ResponseClear