2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-12 07:10:26 +00:00
cointop/pkg/api/api.go
2021-02-23 00:05:34 -08:00

25 lines
466 B
Go

package api
import (
cg "github.com/miguelmota/cointop/pkg/api/impl/coingecko"
cmc "github.com/miguelmota/cointop/pkg/api/impl/coinmarketcap"
)
// NewCMC new CoinMarketCap API
func NewCMC(apiKey string) Interface {
return cmc.NewCMC(apiKey)
}
// NewCC new CryptoCompare API
func NewCC() {
// TODO
}
// NewCG new CoinGecko API
func NewCG(perPage, maxPages uint) Interface {
return cg.NewCoinGecko(&cg.Config{
PerPage: perPage,
MaxPages: maxPages,
})
}