Documentation
¶
Index ¶
- Variables
- type Service
- func (s *Service) CoinLink(name string) string
- func (s *Service) GetAllCoinData(convert string, ch chan []apitypes.Coin) error
- func (s *Service) GetCoinGraphData(convert, symbol string, name string, start int64, end int64) (apitypes.CoinGraph, error)
- func (s *Service) GetGlobalMarketData(convert string) (apitypes.GlobalMarketData, error)
- func (s *Service) GetGlobalMarketGraphData(convert string, start int64, end int64) (apitypes.MarketGraph, error)
- func (s *Service) Ping() error
- func (s *Service) Price(name string, convert string) (float64, error)
- func (s *Service) SupportedCurrencies() []string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPingFailed = errors.New("Failed to ping")
ErrPingFailed is the error for when pinging the API fails
View Source
var ErrQuoteNotFound = errors.New("Quote not found")
ErrQuoteNotFound is the error for when a quote is not found
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service service
func (*Service) GetAllCoinData ¶
GetAllCoinData gets all coin data. Need to paginate through all pages
func (*Service) GetCoinGraphData ¶
func (s *Service) GetCoinGraphData(convert, symbol string, name string, start int64, end int64) (apitypes.CoinGraph, error)
GetCoinGraphData gets coin graph data
func (*Service) GetGlobalMarketData ¶
func (s *Service) GetGlobalMarketData(convert string) (apitypes.GlobalMarketData, error)
GetGlobalMarketData gets global market data
func (*Service) GetGlobalMarketGraphData ¶
func (s *Service) GetGlobalMarketGraphData(convert string, start int64, end int64) (apitypes.MarketGraph, error)
GetGlobalMarketGraphData gets global market graph data
func (*Service) SupportedCurrencies ¶
SupportedCurrencies returns a list of supported currencies
Click to show internal directories.
Click to hide internal directories.