Liquidity Mining Estimates API
This page has been deprecated. V1 documentation is partially maintained here
Liquidity Mining Estimates API
Liquidity Mining Estimates API
This API provides an estimate amount of tokens earned by a liquidity provider at the current week (and previous week if tokens weren't sent out yet). Cumulative estimates for the week in progress are computed every hour, and the velocity with each tokens are being accrued is computed from the difference between two consecutive estimates. Clients can then use the velocity to update in real time the estimates retrieved from the API.
Retrieving Liquidity Provider Data
HTTP Request
URL Parameters
Param | Description | Required |
address | The address of the liquidity provider | TRUE |
Example Request
Example Response
Response Definitions
Parameter | Definition |
success |
|
current_timestamp | The timestamp of when the request was received by the server |
snapshot_timestamp | The last time the mining estimator script was executed and velocity was determined |
address | The address of the liquidity provider |
token_address | The address of the token received as incentive for liquidity provided |
chain_id | The ID of the chain in which liquidity was provided |
velocity | The estimated rate, in |
current_estimate | The estimated total amount of |
week | The number of the week that the estimates refer to, |
Client side updates
Clients can update the real time estimate by increasing the current_estimate
retrieved from the API by velocity
every second. The underlying data served by the API is updated every other hour, but it takes about 10 minutes to run the script, so clients should not expect any changes before at least 70 minutes have passed since snapshot_timestamp
.
Notes
Estimates are approximate, as they do not account for liquidity added/removed since the last time the script was run.
The API only provides estimates for weeks that have not yet been finalized; as soon as the estimator script detects that the previous weeks claims have been made available, the estimates for that week are removed from the underlying dataset.
Last updated