Versions in this module Expand all Collapse all v1 v1.0.0 Sep 9, 2019 Changes in this version + const BTC + const KRW + const LUNA + const SDR + const USD + func PairStr(base string, quote string) string + type BasePair struct + func NewPair(base string, quote string) BasePair + func (pair BasePair) Base() string + func (pair BasePair) Price() (sdk.Dec, error) + func (pair BasePair) Quote() string + func (pair BasePair) SetPrice(price sdk.Dec) Pair + func (pair BasePair) String() string + type Pair interface + Base func() string + Price func() (sdk.Dec, error) + Quote func() string + SetPrice func(sdk.Dec) Pair + String func() string + type Source interface + Fetch func() error + Interval func() time.Duration + Market func() string + Pair func() Pair + type SourceProvider func(interval time.Duration) Source