mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 11:03:53 +00:00
14 lines
256 B
Go
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}
|
|
}
|