exchangerates

package
v0.0.0-...-2b76590 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeCurrencyCode

func NormalizeCurrencyCode(currencyCode string) string

NormalizeCurrencyCode standardizes the format for the given currency code

Types

type BitfinexDecoder

type BitfinexDecoder struct{}

type BittrexDecoder

type BittrexDecoder struct{}

type ExchangeRateDecoder

type ExchangeRateDecoder interface {
	// contains filtered or unexported methods
}

type ExchangeRateProvider

type ExchangeRateProvider struct {
	// contains filtered or unexported fields
}

type KrakenDecoder

type KrakenDecoder struct{}

type OpenBazaarDecoder

type OpenBazaarDecoder struct{}

type PoloniexDecoder

type PoloniexDecoder struct{}

type ZcashPriceFetcher

type ZcashPriceFetcher struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewZcashPriceFetcher

func NewZcashPriceFetcher(dialer proxy.Dialer) *ZcashPriceFetcher

func (*ZcashPriceFetcher) GetAllRates

func (z *ZcashPriceFetcher) GetAllRates(cacheOK bool) (map[string]float64, error)

func (*ZcashPriceFetcher) GetExchangeRate

func (z *ZcashPriceFetcher) GetExchangeRate(currencyCode string) (float64, error)

func (*ZcashPriceFetcher) GetLatestRate

func (z *ZcashPriceFetcher) GetLatestRate(currencyCode string) (float64, error)

func (*ZcashPriceFetcher) UnitsPerCoin

func (z *ZcashPriceFetcher) UnitsPerCoin() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL