Get current volume discount program
Get the current volume discount program for the network. This program may not be active if it has ended and has not been replaced by another.
Responses
- 200
- 500
- default
A successful response.
application/json
Schema
Example (from schema)
Schema
currentVolumeDiscountProgram object
{
"currentVolumeDiscountProgram": {
"benefitTiers": [
{
"minimumRunningNotionalTakerVolume": "string",
"volumeDiscountFactor": "string"
}
],
"endOfProgramTimestamp": "string",
"endedAt": "string",
"id": "string",
"version": "string",
"windowLength": "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"
}
GET /api/v2/volume-discount-programs/current
Request
Request
curl / cURL
curl -L -X GET 'https://vega-data.nodes.guru:3008/api/v2/volume-discount-programs/current' \
-H 'Accept: application/json'
python / requests
curl -L -X GET 'https://vega-data.nodes.guru:3008/api/v2/volume-discount-programs/current' \
-H 'Accept: application/json'
go / native
curl -L -X GET 'https://vega-data.nodes.guru:3008/api/v2/volume-discount-programs/current' \
-H 'Accept: application/json'
nodejs / axios
curl -L -X GET 'https://vega-data.nodes.guru:3008/api/v2/volume-discount-programs/current' \
-H 'Accept: application/json'