Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

hexoul/go-kucoin

Repository files navigation

Kucoin API Client

GoDoc Go Report Card

Kucoin API v2 Client

Usage

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",
  })
}

Test

  1. Fill your information in kucoin_test.go
const (
  APIKey     = "YOUR_API_KEY"
  SecretKey  = "YOUR_SECRET_KEY"
  Passphrase = "YOUR_PASSPHRASE"
)
  1. go test -v

Features

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

Reference