adshao / go-binance

A Go SDK for Binance API
MIT License
1.48k stars 664 forks source link

how to get permission? #512

Open csquan opened 9 months ago

csquan commented 9 months ago
    use code:
    const secretKey = "XXXXXX"
const apiKey    = "XXXXX"

 const base_testnet_binance_url = "https://testnet.binance.vision/api"

 client := NewClient(apiKey, secretKey)
client.SetApiEndpoint(base_spot_binance_url)
permission, err := client.Do(context.Background())
if err != nil {
    fmt.Println("error:", err)
    return
}

but get error: code=0, msg= why??does something wrong??

csquan commented 9 months ago

?

csquan commented 9 months ago

?