Documentation ¶
Index ¶
Constants ¶
View Source
const BTC = "btc"
View Source
const KRW = "krw"
View Source
const LUNA = "luna"
View Source
const SDR = "sdr"
View Source
const USD = "usd"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pair ¶
type Pair interface { String() string Base() string Quote() string Price() (sdk.Dec, error) SetPrice(sdk.Dec) Pair }
Pair indicates how many {Quote} currency are needed to purchase one {Base} currency. And, pair should be immutable. So, if you want to set value in pair, you should return new structure.
type SourceProvider ¶
Click to show internal directories.
Click to hide internal directories.