exchange

package
v0.0.0-...-8eaf68a Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SatoshiPerBTC = 100000000

Variables

This section is empty.

Functions

This section is empty.

Types

type BitPayDecoder

type BitPayDecoder struct{}

type BitcoinAverageDecoder

type BitcoinAverageDecoder struct{}

empty structs to tag the different ExchangeRateDecoder implementations

type BitcoinChartsDecoder

type BitcoinChartsDecoder struct{}

type BitcoinPriceFetcher

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

func NewBitcoinPriceFetcher

func NewBitcoinPriceFetcher(dialer proxy.Dialer) *BitcoinPriceFetcher

func (*BitcoinPriceFetcher) GetAllRates

func (b *BitcoinPriceFetcher) GetAllRates() (map[string]float64, error)

func (*BitcoinPriceFetcher) GetExchangeRate

func (b *BitcoinPriceFetcher) GetExchangeRate(currencyCode string) (float64, error)

func (*BitcoinPriceFetcher) GetLatestRate

func (b *BitcoinPriceFetcher) GetLatestRate(currencyCode string) (float64, error)

func (*BitcoinPriceFetcher) UnitsPerCoin

func (b *BitcoinPriceFetcher) UnitsPerCoin() int

type BlockchainInfoDecoder

type BlockchainInfoDecoder struct{}

type ExchangeRateDecoder

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

type ExchangeRateProvider

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

Jump to

Keyboard shortcuts

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