Stats
This documentation provides details on the API endpoints available for Whirlprivacy.io, focusing on stats-related operations.
GET /stats/global
- Global Statistics
GET /stats/global
- Global StatisticsDescription:
This endpoint retrieves comprehensive global statistics related to the Whirl token.
Parameters:
No parameters are needed for this request.
Response:
Error Handling:
InvalidToken
The provided token is invalid or expired.
ServerError
An internal server error occurred.
Example Code:
GET /stats/tvl
- Total Value Locked (TVL)
GET /stats/tvl
- Total Value Locked (TVL)Description:
This endpoint retrieves the Total Value Locked (TVL) statistics, aggregated by a specified granularity.
Parameters:
granularity
integer
The granularity level for data aggregation (e.g., 1 for daily).
Response:
Error Handling:
InvalidRequest
The request parameters are invalid.
ServerError
An internal server error occurred.
Example Code:
GET /stats/vol
- Trading Volume
GET /stats/vol
- Trading VolumeDescription:
This endpoint retrieves trading volume statistics, broken down by the same granularity as specified in the request.
Parameters:
granularity
integer
The granularity level for data aggregation (e.g., 1 for daily).
Response:
Error Handling:
InvalidRequest
The request parameters are invalid.
ServerError
An internal server error occurred.
Example Code:
GET /stats/tokens
- Token Data
GET /stats/tokens
- Token DataDescription:
This endpoint retrieves detailed data about the Whirl token and other currencies.
Parameters:
No parameters are needed for this request.
Response:
Error Handling:
InvalidToken
The provided token is invalid or expired.
ServerError
An internal server error occurred.
Example Code:
Last updated