Documentation ¶
Index ¶
Constants ¶
View Source
const FREE_API_URL = "https://api.coingecko.com/api"
View Source
const PRO_API_URL = "https://pro-api.coingecko.com/api"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rates ¶
type Rates struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(config *RatesConfig) *Rates
func (*Rates) FetchRates ¶
func (rates *Rates) FetchRates() (RatesResult, error)
type RatesConfig ¶
*
- ApiKey is the CoinGecko API key; use the empty string for basic API
- access (with lower access limits_ *
- Cryptos is a map of localId -> remoteId pairs. *
- Fiats is an array of fiat currencies for which we want rates.
type RatesResult ¶
Click to show internal directories.
Click to hide internal directories.