2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-16 21:25:38 +00:00
cointop/pkg/api/api.go

22 lines
387 B
Go
Raw Normal View History

package api
import (
2020-11-17 03:12:24 +00:00
cg "github.com/miguelmota/cointop/pkg/api/impl/coingecko"
cmc "github.com/miguelmota/cointop/pkg/api/impl/coinmarketcap"
)
2018-05-09 08:24:31 +00:00
// NewCMC new CoinMarketCap API
2019-04-22 02:39:07 +00:00
func NewCMC(apiKey string) Interface {
2019-05-13 02:24:10 +00:00
return cmc.NewCMC(apiKey)
}
2018-05-09 08:24:31 +00:00
// NewCC new CryptoCompare API
func NewCC() {
2018-12-24 09:10:36 +00:00
// TODO
2018-05-09 08:24:31 +00:00
}
2018-12-31 23:30:23 +00:00
// NewCG new CoinGecko API
2019-05-13 02:24:10 +00:00
func NewCG() Interface {
return cg.NewCoinGecko()
2018-12-31 23:30:23 +00:00
}