mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 01:05:15 +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}
|
||
|
}
|