getStats
Description:
Getting the osToken stats collection. With the help of this data it is possible to build a chart.
Arguments:
Name | Type | Required | Description |
---|---|---|---|
daysCount | number | Yes | The limit in days |
Returns:
type Output = {
apy: number
time: number
balance: number
rewards: number
}
Name | Description |
---|---|
time | Date and time for each data point |
apy | Current APY based on time, rewards and balance. |
rewards | Number of assets earned by the osToken during the interval |
balance | Total assets in the osToken at the moment of time |
Example:
await sdk.osToken.getStats({
daysCount: 30
})