Module hydradx_traits::oracle

source ·

Structs

Struct to represent oracle data aggregated over a time period. Includes the age of the oracle as metadata. Age is the blocks between first data and the timestamp of the most recent value.
Struct to represent pool liquidity for an asset pair.
Struct to represent trade volume for an asset pair.

Enums

Defines the different kinds of aggregation periods for oracles.

Traits

An oracle returning an entry of oracle data aggregated over period.
An oracle returning a price aggregated over period with the associated oracle age (to allow judging whether the oracle had a chance to settle yet).
Implementers of this trait provide the price of a given asset compared to the native currency.
Implementers of this trait provide the price for an arbitrary asset pair.

Type Definitions

Identifier for oracle data sources.