Kucoin API v2 Client
import (
kucoin "github.com/hexoul/go-kucoin"
)
func main() {
// Set your own API key, secret and passphrase
k := kucoin.GetInstanceWithKey("API_KEY", "API_SECRET", "API_PASSPHRASE")
// Call resource
k.ListAccounts(nil)
// Call resource with option
k.ListAccounts(&kucoin.Options{
Currency: "BTC",
})
}
- Fill your information in
kucoin_test.go
const (
APIKey = "YOUR_API_KEY"
SecretKey = "YOUR_SECRET_KEY"
Passphrase = "YOUR_PASSPHRASE"
)
go test -v
Category | API Resource | Type | Done |
---|---|---|---|
User | List accounts | Auth | ✔ |
User | Get holds | Auth | ✔ |
User | List deposits | Auth | ✔ |
User | List fills | Auth | ✔ |
Market Data | Ticker | Open | ✔ |
Others | Time | Open | ✔ |