unoffcial go client for Gemini
- Authentication
- Submit Buy and Sell Orders
- Go >= 1.15
go get github.com/igaskin/go-gemini
package main
import (
"context"
"fmt"
"github.com/igaskin/go-gemini/gemini"
)
func main() {
// set environment variables
// GEMINI_API_KEY
// GEMINI_API_SECRET
client := gemini.NewClient()
ctx := context.Background()
resp, err := client.NewOrder(ctx, &gemini.NewOrderInput{
Symbol: "ethusd",
Side: "BUY",
Amount: ".001",
OrderType: "exchange limit",
Account: "primary",
Price: "9999999",
Options: []string{"immediate-or-cancel"},
})
if err != nil {
fmt.Println(err)
}
fmt.Printf("%+v\n", resp)
}