Documentation ¶
Index ¶
Constants ¶
View Source
const CRYPTOCOMPARE_RATES_URL = "https://min-api.cryptocompare.com/data/price?fsym={base_currency}&tsyms=USD,RUB,EUR,GBP,AUD,ETH,BTC"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptocompateCurrencyResponse ¶
type CryptocompateCurrencyResponse struct { USD float64 `json:"USD"` RUB float64 `json:"RUB"` EUR float64 `json:"EUR"` AUD float64 `json:"AUD"` GBP float64 `json:"GBP"` ETH float64 `json:"ETH"` BTC float64 `json:"BTC"` }
func GetCryptocompareCurrencyResponse ¶
func GetCryptocompareCurrencyResponse(baseCurrency string) (CryptocompateCurrencyResponse, error)
Click to show internal directories.
Click to hide internal directories.