Versions in this module Expand all Collapse all v0 v0.1.0 Jul 31, 2022 Changes in this version + const GeckoURL + const YahooURL + func FormatAmount(amount float64) string + type Change struct + Fmt string + LongFmt string + Raw float64 + type CurrentPrice struct + BTC float64 + USD float64 + type GeckoPriceResults struct + ID string + MarketData MarketData + Name string + Symbol string + func GetCryptoPrice(ticker string) (GeckoPriceResults, error) + type MarketData struct + CirculatingSupply float64 + CurrentPrice CurrentPrice + MarketCap CurrentPrice + MarketCapChangeCurrency CurrentPrice + MarketCapChangePercent float64 + PriceChangeCurrency CurrentPrice + PriceChangePercent float64 + TotalSupply float64 + TotalValueLocked TotalValueLocked + type PriceResults struct + Error string + QuoteSummary Results + func GetStockPrice(ticker string) (PriceResults, error) + type Pricing struct + AverageDailyVolume10Day Change + AverageDailyVolume3Month Change + CirculatingSupply Change + Currency string + CurrencySymbol string + Exchange string + ExchangeDataDelayedBy int + ExchangeName string + LongName string + MarketCap Change + MarketState string + MaxAge int + OpenInterest Change + PostMarketChange Change + PostMarketChangePercent Change + PostMarketPrice Change + PostMarketSource string + PostMarketTime int + PreMarketChange Change + PreMarketChangePercent Change + PreMarketPrice Change + PreMarketSource string + PriceHint Change + QuoteSourceName string + QuoteType string + RegularMarketChange Change + RegularMarketChangePercent Change + RegularMarketDayHigh Change + RegularMarketDayLow Change + RegularMarketOpen Change + RegularMarketPreviousClose Change + RegularMarketPrice Change + RegularMarketSource string + RegularMarketTime int + RegularMarketVolume Change + ShortName string + StrikePrice Change + Symbol string + Volume24Hr Change + VolumeAllCurrencies Change + type Result struct + Price Pricing + type Results struct + Results []Result + type TotalValueLocked struct + BTC float64 + USD float64