Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Currency ¶
type Currency struct {
// contains filtered or unexported fields
}
Currency - Normalized return data from BaseAgainsMultiPrice.
func BaseAgainsMultiPrice ¶
BaseAgainsMultiPrice - Given a base currency it will load the corresponding rate value. Ex: "USD"(1$) -> "ETH"(0.00X), "BTC(0.00X)"
func PriceHistoryByDay ¶
PriceHistoryByDay - Given a base currency it will load the corresponding rate value based on that day. The day is calculated from the timeStamp and will provide the value for that day.
type MultiPriceFrom ¶
type MultiPriceFrom struct { From string // Contains list of the targetet currency. To map[string]MultiPriceTo }
MultiPriceFrom - Contains the name of the currency you take as base to compare to. Ex: "USD"
type MultiPriceMarket ¶
type MultiPriceMarket struct { // Type - This can be Ex: "RAW" or "DISPLAY" Type map[string]map[string]MultiPriceFrom }
MultiPriceMarket - Contains the outermost layer of the response.
func MultiPriceTradingInfo ¶
func MultiPriceTradingInfo(from []string, to []string) MultiPriceMarket
MultiPriceTradingInfo - Contains data from multiple currencies to multiple currencies.
type MultiPriceTo ¶
MultiPriceTo - Contains the targetet currency. Ex: "ETH"