package
1.0.1-alpha
Repository: https://github.com/persistenceone/oracle-feeder.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

ComputeStandardDeviationsAndMeans returns maps of the standard deviations and means of assets.
ComputeTVWAP computes the time volume weighted average price for all points for each exchange pair.
ComputeVWAP computes the volume weighted average price for all price points for each ticker/exchange pair.
ConvertCandlesToUSD converts any candles which are not quoted in USD to USD by other price feeds.
ConvertTickersToUSD converts any tickers which are not quoted in USD to USD, using the conversion rates of other tickers.
FilterTickerDeviations finds the standard deviations of the prices of all assets, and filters out any providers that are not within 2𝜎 of the mean.
No description provided by the author
No description provided by the author
SetProviderTickerPricesAndCandles flattens and collects prices for candles and tickers based on the base currency per provider.

# Structs

Oracle implements the core component responsible for fetching exchange rates for a given set of currency pairs and determining the correct exchange rates to submit to the on-chain price oracle adhering the oracle specification.
ParamCache is used to cache oracle param data for an amount of blocks, defined by paramsCacheInterval.
PreviousPrevote defines a structure for defining the previous prevote submitted on-chain.
No description provided by the author

# Type aliases

No description provided by the author