Constructs a new LstHistoricalYieldTask.
Optionalproperties: ILstHistoricalYieldTaskProperties to set
Optional. The number of epochs to sample for the computation.
epochs = 0, all available historical data will be used.epochs > 0, only the last epochs entries will be included.Required. The LST mint address for which historical yield data is queried.
Required. The statistical operation to apply to the historical yield dataset.
Converts this LstHistoricalYieldTask to JSON.
JSON object
StaticcreateCreates a new LstHistoricalYieldTask instance using the specified properties.
Optionalproperties: ILstHistoricalYieldTaskProperties to set
LstHistoricalYieldTask instance
StaticdecodeDecodes a LstHistoricalYieldTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
LstHistoricalYieldTask
StaticdecodeDecodes a LstHistoricalYieldTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
LstHistoricalYieldTask
StaticencodeEncodes the specified LstHistoricalYieldTask message. Does not implicitly {@apilink oracle_job.OracleJob.LstHistoricalYieldTask.verify|verify} messages.
LstHistoricalYieldTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified LstHistoricalYieldTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.LstHistoricalYieldTask.verify|verify} messages.
LstHistoricalYieldTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a LstHistoricalYieldTask message from a plain object. Also converts values to their respective internal types.
Plain object
LstHistoricalYieldTask
StaticgetGets the default type url for LstHistoricalYieldTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a LstHistoricalYieldTask message. Also converts values to other types if specified.
LstHistoricalYieldTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a LstHistoricalYieldTask message.
Plain object to verify
null if valid, otherwise the reason why it is not
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