bbgo_origin/pkg/datasource/coinmarketcap/datasource.go
2022-05-12 01:59:42 +08:00

14 lines
256 B
Go

package coinmarketcap
import v1 "github.com/c9s/bbgo/pkg/datasource/coinmarketcap/v1"
type DataSource struct {
client *v1.RestClient
}
func New(apiKey string) *DataSource {
client := v1.New()
client.Auth(apiKey)
return &DataSource{client: client}
}