-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels