Yields API
Pull current and historical yield data for all assets supported by our infrastructure.
Get Yields
GET
https://mainnet.staked.cloud/api/yields
Get yield information for assets.
Query Parameters
Name | Type | Description |
---|---|---|
api_key | string | Your API key |
date | string | Get data from a specific date, default is current day. Format: YYYY-MM-DD |
extended | boolean | Get more staking data in the response such as inflation, staking rate, etc |
by_key | string | Filters for assets associated with api_key |
currencies | array | List of currencies to return, default is all |
Get Currency Yield Time Series
GET
https://mainnet.staked.cloud/api/yields/currency/:currency/timeseries
Get yield information for assets as a time series.
Path Parameters
Name | Type | Description |
---|---|---|
currency | string | Currency name. Ex: "Decred" |
Query Parameters
Name | Type | Description |
---|---|---|
api_key | string | Your API key |
interval | integer | Interval, in days |
num_entries | string | Number of entries |
date | string | Timeseries start date, default is current day. Format: YYYY-MM-DD |
extended | boolean | Get more staking data in the response such as inflation, staking rate, etc |
Last updated