Documentation ¶
Index ¶
- func Bancor_Token2ETH(symbol1 string, symbol2 string) (float64, error)
- func DoQuery(driver Driver, key []byte) dt.Answer
- func FromConfig(config *viper.Viper) map[common.Address]Driver
- func GetMultiplierValue(price float64, m int64) *big.Int
- func Kyber_Token2ETH(singleSymbol string) (float64, error)
- func Majority(values []*big.Int) (*big.Int, int, error)
- func Median(values []*big.Int) *big.Int
- func PriceToBigInt(price float64) *big.Int
- func TurnOnQueryDebugging()
- type AggMajority
- type AggMedian
- type AlphaVantageForex
- type AlphaVantageStock
- type Bancor
- type Binance
- type Bitfinex
- type Bitstamp
- type Bittrex
- type CoinBase
- type CoinGecko
- type CoinMarketCap
- type CryptoCompare
- type CurrencyConverter
- type DataNba
- type DelegateDriver
- type Driver
- type EplEspn
- type EplSport
- type FinancialModelPrep
- type FreeForexApi
- type Gemini
- type IdleDriver
- type Kraken
- type Kyber
- type MlbEspn
- type MockDriver
- type NbaEspn
- type NflEspn
- type OnChainFX
- type OpenMarketCap
- type PriceHttp
- type Ratesapi
- type RegEx
- type Uniswap
- type ValueWithLastUpdated
- type WebRequest
- type WorldTradingData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Kyber_Token2ETH ¶
func PriceToBigInt ¶
func TurnOnQueryDebugging ¶
func TurnOnQueryDebugging()
Types ¶
type AggMajority ¶
type AggMajority struct {
// contains filtered or unexported fields
}
func (*AggMajority) Configure ¶
func (aggmajority *AggMajority) Configure(config *viper.Viper)
type AlphaVantageForex ¶
type AlphaVantageForex struct{}
func (*AlphaVantageForex) Configure ¶
func (*AlphaVantageForex) Configure(config *viper.Viper)
func (*AlphaVantageForex) QuerySpotPrice ¶
func (*AlphaVantageForex) QuerySpotPrice(symbol string) (float64, error)
type AlphaVantageStock ¶
type AlphaVantageStock struct{}
func (*AlphaVantageStock) Configure ¶
func (*AlphaVantageStock) Configure(config *viper.Viper)
func (*AlphaVantageStock) QuerySpotPrice ¶
func (*AlphaVantageStock) QuerySpotPrice(symbol string) (float64, error)
type CoinMarketCap ¶
type CoinMarketCap struct{}
func (*CoinMarketCap) Configure ¶
func (*CoinMarketCap) Configure(config *viper.Viper)
func (*CoinMarketCap) QuerySpotPrice ¶
func (*CoinMarketCap) QuerySpotPrice(symbol string) (float64, error)
type CryptoCompare ¶
type CryptoCompare struct{}
func (*CryptoCompare) Configure ¶
func (*CryptoCompare) Configure(*viper.Viper)
func (*CryptoCompare) QuerySpotPrice ¶
func (*CryptoCompare) QuerySpotPrice(symbol string) (float64, error)
type CurrencyConverter ¶
type CurrencyConverter struct{}
func (*CurrencyConverter) Configure ¶
func (*CurrencyConverter) Configure(config *viper.Viper)
func (*CurrencyConverter) QuerySpotPrice ¶
func (*CurrencyConverter) QuerySpotPrice(symbol string) (float64, error)
type DelegateDriver ¶
type DelegateDriver struct {
// contains filtered or unexported fields
}
func (*DelegateDriver) Configure ¶
func (dd *DelegateDriver) Configure(config *viper.Viper)
type Driver ¶
func FromConfigIndividual ¶
type FinancialModelPrep ¶
type FinancialModelPrep struct{}
func (*FinancialModelPrep) Configure ¶
func (*FinancialModelPrep) Configure(*viper.Viper)
func (*FinancialModelPrep) QuerySpotPrice ¶
func (*FinancialModelPrep) QuerySpotPrice(symbol string) (float64, error)
type FreeForexApi ¶
type FreeForexApi struct{}
func (*FreeForexApi) Configure ¶
func (*FreeForexApi) Configure(*viper.Viper)
func (*FreeForexApi) QuerySpotPrice ¶
func (*FreeForexApi) QuerySpotPrice(symbol string) (float64, error)
type IdleDriver ¶
type IdleDriver struct{}
func (*IdleDriver) Configure ¶
func (*IdleDriver) Configure(*viper.Viper)
type MockDriver ¶
type MockDriver struct {
// contains filtered or unexported fields
}
func (*MockDriver) Configure ¶
func (adpt *MockDriver) Configure(*viper.Viper)
func (*MockDriver) Set ¶
func (adpt *MockDriver) Set(key string, rawValue string)
type OpenMarketCap ¶
type OpenMarketCap struct{}
func (*OpenMarketCap) Configure ¶
func (*OpenMarketCap) Configure(*viper.Viper)
func (*OpenMarketCap) QuerySpotPrice ¶
func (*OpenMarketCap) QuerySpotPrice(symbol string) (float64, error)
type ValueWithLastUpdated ¶
type ValueWithLastUpdated struct {
// contains filtered or unexported fields
}
type WebRequest ¶
type WebRequest struct {
// contains filtered or unexported fields
}
func (*WebRequest) Configure ¶
func (w *WebRequest) Configure(*viper.Viper)
type WorldTradingData ¶
type WorldTradingData struct{}
func (*WorldTradingData) Configure ¶
func (*WorldTradingData) Configure(config *viper.Viper)
func (*WorldTradingData) QuerySpotPrice ¶
func (*WorldTradingData) QuerySpotPrice(symbol string) (float64, error)
Source Files ¶
- aggmajority.go
- aggmedian.go
- alphavantageforex.go
- alphavantagestock.go
- bancor.go
- binance.go
- bitfinex.go
- bitstamp.go
- bittrex.go
- coinbase.go
- coingecko.go
- coinmarketcap.go
- cryptocompare.go
- currencyconverter.go
- dataNba.go
- delegate.go
- eplEspn.go
- eplSportDb.go
- financialmodelprep.go
- freeforexapi.go
- gemini.go
- idle.go
- kraken.go
- kyber.go
- mlbEspn.go
- mock.go
- nbaEspn.go
- nflEspn.go
- onchainfx.go
- openmarketcap.go
- pricehttp.go
- querywrapper.go
- ratesapi.go
- regex.go
- types.go
- uniswap.go
- webrequest.go
- worldtradingdata.go
Click to show internal directories.
Click to hide internal directories.