Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scopes don't match current API version? #5

Open
tjaensch opened this issue Jan 18, 2018 · 0 comments
Open

Scopes don't match current API version? #5

tjaensch opened this issue Jan 18, 2018 · 0 comments

Comments

@tjaensch
Copy link

I created Coinbase API key and secret and then followed the steps in the README but I'm getting this error when I try to receive my account balance:

2018/01/18 09:43:37 Response body:
{"success":false,"error":"Scopes don't match current API version."}
2018/01/18 09:43:37 GET https://api.coinbase.com/v1/account/balance failed. Response code was 401 Unauthorized

This is the main.go file:

package main

import (
"fmt"
"github.com/fabioberger/coinbase-go"
"log"
"os"
)

func main() {

c := coinbase.ApiKeyClient(os.Getenv("COINBASE_KEY"), os.Getenv("COINBASE_SECRET"))

balance, err := c.GetBalance()
if err != nil {
	log.Fatal(err)
}
fmt.Printf("Balance is %f BTC", balance)

}

Am I doing something wrong or does the current Coinbase API not work any longer with your library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant