aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
blob: f67c3f38b88bec803bd2c415dcab838818fd915c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main

import (
	"com.teddywing/new-house-on-the-block/vendor/_nuts/github.com/fabioberger/coinbase-go"
	"fmt"
	"log"
	"os"
)

func main() {
	c := coinbase.ApiKeyClientSandbox(os.Getenv("COINBASE_KEY"), os.Getenv("COINBASE_SECRET"))

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