This is forked and modified from https://github.com/okcoinjapan/V3-Open-API-SDK
Documentation: https://dev.okcoin.jp/
go get -u github.com/KaKeimei/okj-go-sdk-v3
package gotest
import (
"fmt"
"github.com/KaKeimei/okj-go-sdk-v3"
"testing"
)
func TestOKCoinServerTime(t *testing.T) {
serverTime, err := NewOKCoinClient().GetServerTime()
if err != nil {
t.Error(err)
}
fmt.Println("OKCoin's server time: ", serverTime)
}
func NewOKCoinClient() *okcoin.Client {
var config okcoin.Config
config.Endpoint = "https://www.okcoin.jp/"
config.ApiKey = ""
config.SecretKey = ""
config.Passphrase = ""
config.TimeoutSecond = 45
config.IsPrint = true
config.I18n = okcoin.ENGLISH
client := okcoin.NewClient(config)
return client
}
go test -v -run TestOKCoinServerTime okcoin_open_api_v3_test.go