Properties of a TwapTask.

interface ITwapTask {
    aggregatorPubkey?: null | string;
    endingUnixTimestamp?: null | number;
    endingUnixTimestampTask?: null | ICronParseTask;
    minSamples?: null | number;
    period?: null | number;
    weightByPropagationTime?: null | boolean;
}

Implemented by

Properties

aggregatorPubkey?: null | string

The target aggregator for the TWAP.

endingUnixTimestamp?: null | number

Ending unix timestamp to collect values up to

endingUnixTimestampTask?: null | ICronParseTask

Execute the task to get the ending unix timestamp

minSamples?: null | number

Minimum number of samples in the history to calculate a valid result

period?: null | number

Period, in seconds, the twap should account for

weightByPropagationTime?: null | boolean

Weight samples by their propagation time