fabioberger / coinbase-go Goto Github PK
View Code? Open in Web Editor NEWGo wrapper for the Coinbase API
License: MIT License
Go wrapper for the Coinbase API
License: MIT License
In the README.me
file, the link to the blog containing "a detailed step-by-step tutorial on how to use this library" is broken.
The given link is:
http://fabioberger.com/blog/2014/11/06/building-a-coinbase-app-in-go/
Based on a google search, it looks like the following link is working.
https://fabioberger.com/posts/2014-11-06-building-a-coinbase-app-in-go
tryting to update for Coinbase Pro.
2018/08/24 13:37:31 Response body:
{"errors":["An error has occurred. If this problem persists, please visit https://support.coinbase.com for assistance."]}
2018/08/24 13:37:31 GET https://api.coinbase.com/v1/users failed. Response code was 500 Internal Server Error
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?
Hi first off, thanks for this awesome library!
I was looking at the docs and code to get the native balance for my bot, but it appears this function just yeet the nativa_balance from ever returning from the function? -- I assume that's intentional, but I feel like that's a critical variable not being utilized here that I'm sure many people would use.
I saw the GetBalance function, but that only returns the BTC balance, not the native balance, maybe a new function perhaps GetNativeBalance
? I'll be happy to make a PR for this if this makes sense so it doesn't break anyone elses code.
Thanks!
Hi,
Could you please add a license file for your useful library? Thank you, and sorry if I missed the information somewhere.
any plans to implement api v2?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.