❓Sample requests
Different variables can be queried using:
https://api.lacertalabs.xyz/data/[variable]where [variable] is replaced with the specific variable you want to query. For example, to query the gas fee collection:
https://api.lacertalabs.xyz/data/gasfeecollectionThe responses from the API are in JSON format
{
"0": {
"day": "2023-10-26T00:00:00.000Z",
"average": "501377204.81145328"
},
"latestTen": {
"info": [
{"circulationsupply": "501378716.82265", "height": 12261375},
{"circulationsupply": "501378716.82265", "height": 12261374},
{"circulationsupply": "501378716.82265", "height": 12261373},
{"circulationsupply": "501378716.22173315", "height": 12261372},
{"circulationsupply": "501378714.44391423", "height": 12261371},
{"circulationsupply": "501378714.44391423", "height": 12261370},
{"circulationsupply": "501378714.44391423", "height": 12261369},
{"circulationsupply": "501378713.83916193", "height": 12261368},
{"circulationsupply": "501378711.8043553", "height": 12261367},
{"circulationsupply": "501378711.8043553", "height": 12261366}
]
}
}Daily Averages and Sums
Keys: Daily averages or sums are indexed by keys starting from
0.Genesis Date: The date of the genesis block is represented by the key
0, which corresponds to October 26th, 2023.Subsequent Days: Keys
1,2,3, etc., represent the daily averages or sums for each subsequent day since the genesis block.
Latest 10 Values
Key: The latest 10 values for a variable can be found under the key
latestTen.Format: Each entry includes the value of the variable and its associated block height, formatted as shown above.
Request Headers
To query a specific block height, add the block height to the request header. For example:
API Endpoints for Different Variables
Circulating Supply:
Trading Fee Collection:
Gas Fee Collection:
Staking APR:
Trading Rewards Distribution:
Example Requests
Example 1: Querying Circulating Supply
To get the latest data on circulating supply, use:
Response:
Example 2: Querying Trading Fee Collection
To get the latest data on trading fee collection, use:
Response:
Example 3: Querying a Specific Block Height for Gas Fee Collection
To get the gas fee collection for a specific block height (e.g., 12261374), use:
Response:
Example 4: Querying Staking APR
To get the latest data on staking APR, use:
Response:
Example 5: Querying Trading Rewards Distribution
To get the latest data on trading rewards distribution, use:
Response:
Example 6: Querying Data for a Specific Date Range
To get data for a specific range of dates, you will need to filter the results client-side as the API currently returns a full dataset. Here’s an example in Python:
Last updated