Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DollarToCLP float64
View Source
var ISO4217Dict = map[string]string{
"Baht tailandés": "THB",
"Balboa panameño": "PAB",
"Bolívar fuerte venezolano": "VEF",
"Boliviano": "BOB",
"Colón costarricense": "CRC",
"Corona checa": "CZK",
"Corona danesa": "DKK",
"Corona islandesa": "ISK",
"Corona noruega": "NOK",
"Corona sueca": "SEK",
"DEG": "DEG",
"Dírham de Emiratos Árabes Unidos": "AED",
"Dírham Marroquí": "MAD",
"Dólar australiano": "AUD",
"Dólar canadiense": "CAD",
"Dólar de bermudas": "BMD",
"Dólar de Islas Caimán": "KYD",
"Dólar de las Bahamas": "BSD",
"Dólar singapurense": "SGD",
"Dolár fiyiano": "FJD",
"Dólar hongkonés": "HKD",
"Dólar neozelandés": "NZD",
"Dólar taiwanés": "TWD",
"Euro": "EUR",
"Forint húngaro": "HUF",
"Franco de la Polinesia Francesa": "XPF",
"Franco suizo": "CHF",
"Guaraní paraguayo": "PYG",
"Hryvnia ucraniano": "UAH",
"Leu rumano": "RON",
"Libra egipcia": "EGP",
"Libra esterlina": "GBP",
"Nueva lira turca": "TRY",
"Nuevo sol peruano": "PEN",
"Peso argentino": "ARS",
"Peso colombiano": "COP",
"Peso cubano": "CUP",
"Peso de República Dominicana": "DOP",
"Peso filipino": "PHP",
"Peso mexicano": "MXN",
"Peso uruguayo": "UYU",
"Quetzal guatemalteco": "GTQ",
"Rand surafricano": "ZAR",
"Real Brasileño": "BRL",
"Rial iraní": "IRR",
"Rial saudita": "SAR",
"Ringgit malasio": "MYR",
"Rublo ruso": "RUB",
"Rupia de Indonesia": "IDR",
"Rupia india": "INR",
"Rupia pakistaní": "PKR",
"Shekel israelí": "ILS",
"Tenge de Kazajstán": "KZT",
"Won coreano": "KRW",
"Yen": "JPY",
"Yuan": "CNY",
"Zloty polaco": "PLN",
}
Functions ¶
func CryptoHandler ¶
func CurrencyHandler ¶
func GetCurrenciesDailyURL ¶
Types ¶
type Coin ¶
type Coin struct { Name string `json:"name"` Symbol string `json:"symbol"` MarketCap int64 `json:"market_cap_usd"` PriceUSD float64 `json:"price_usd"` PriceCLP float64 `json:"price_clp"` Supply int64 `json:"supply"` Volume int64 `json:"volume_usd"` HourlyChange float64 `json:"hourly_change"` DailyChange float64 `json:"daily_change"` WeeklyChange float64 `json:"weekly_change"` }
func ParseCryptoJSON ¶
func ParseCryptoJSON(r io.ReadCloser) (coins []Coin, err error)
type Currency ¶
type Currency struct { Name string `json:"name"` ISO4217 string `json:"iso4217"` ExchangeRate float64 `json:"exchange_rate"` }
func GetCurrencies ¶
func ParseCurrenciesHTML ¶
func ParseCurrenciesHTML(r io.ReadCloser) (currencies []Currency, err error)
type EconomicIndicators ¶
type EconomicIndicators struct { UF float64 `json:"uf"` IVP float64 `json:"ivp"` Dollar float64 `json:"dollar"` Euro float64 `json:"euro"` ITCNM float64 `json:"itcnm"` OztSilver float64 `json:"ozt_silver"` OztGold float64 `json:"ozt_gold"` LbCopper float64 `json:"lb_copper"` }
func GetBancoCentralIndicators ¶
func GetBancoCentralIndicators() (EconomicIndicators, error)
func ParseIndicatorsHTML ¶
func ParseIndicatorsHTML(r io.ReadCloser) (EconomicIndicators, error)
Click to show internal directories.
Click to hide internal directories.