Skip to main content

LstHistoricalYieldTask

Query historical yield data for a given Liquid Staking Token (LST) and perform a statistical reduction operation over the dataset.

Input: LST mint address, reduction operation type, and number of epochs to sample.

Returns: The computed yield value based on the specified operation.

Example: Compute the median APY for an LST over the last 100 epochs

{
"lstHistoricalYieldTask": {
"lstMint": "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn",
"operation": "OPERATION_MEDIAN",
"epochs": 100
}
}


Fields

NameTypeDescription
 epochs

int32

Optional. The number of epochs to sample for the computation. / - If epochs = 0, all available historical data will be used. / - If epochs > 0, only the last epochs entries will be included.

 lstMint

string

Required. The LST mint address for which historical yield data is queried.

 operation

Required. The statistical operation to apply to the historical yield dataset.

Enums

 Operation

ValueNameDescription
 0OPERATION_MEDIAN
 1OPERATION_MEAN
 2OPERATION_MIN
 3OPERATION_MAX