Categorygithub.com/hexoul/go-upbit
repositorypackage
0.1.1
Repository: https://github.com/hexoul/go-upbit.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

go-upbit

License Go Report Card GoDoc

Upbit API Client written in Golang

Install

go get -u github.com/hexoul/go-upbit

Getting started

  • As library, start from upbit.GetInstanceWithKey('YOUR_ACCESS_KEY', 'YOUR_SECRET_KEY')
  • As program, start from upbit.GetInstance() after executing go run -upbit:accesskey=[YOUR_ACCESS_KEY] -upbit:secretkey=[YOUR_SECRET_KEY]
package main

import (
    "fmt"

    upbit "github.com/hexoul/go-upbit"
)

func init() {
    upbit.GetInstanceWithKey("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY")
}

func main() {
    if ret, err := upbit.GetInstance().Accounts(); err == nil {
        for _, v := range ret {
            fmt.Println(v.Currency, v.Balance, v.Locked)
        }
    }
}

Features

TypeMethodEndpointDone
AssetGET/v1/accounts
OrderGET/v1/orders/chance-
OrderGET/v1/orders
OrderGET/v1/order-
OrderPOST/v1/order-
OrderDELETE/v1/order-

Reference

Upbit API