https://github.com/hexoul/go-upbit
Upbit API Client
https://github.com/hexoul/go-upbit
api-client go upbit
Last synced: 5 months ago
JSON representation
Upbit API Client
- Host: GitHub
- URL: https://github.com/hexoul/go-upbit
- Owner: hexoul
- License: mit
- Archived: true
- Created: 2019-04-15T00:16:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-19T06:05:17.000Z (about 7 years ago)
- Last Synced: 2023-07-27T22:12:11.691Z (almost 3 years ago)
- Topics: api-client, go, upbit
- Language: Go
- Homepage: https://docs.upbit.com/v1.0.6/reference
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-upbit
[](https://raw.githubusercontent.com/hexoul/go-upbit/master/LICENSE)
[](https://goreportcard.com/report/github.com/hexoul/go-upbit)
[](https://godoc.org/github.com/hexoul/go-upbit)
> 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]`
```go
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
| Type | Method | Endpoint | Done |
|----------------|--------|----------------------------------------|------|
| Asset | GET | /v1/accounts | ✔ |
| Order | GET | /v1/orders/chance | - |
| Order | GET | /v1/orders | ✔ |
| Order | GET | /v1/order | - |
| Order | POST | /v1/order | - |
| Order | DELETE | /v1/order | - |
## Reference
[Upbit API](https://docs.upbit.com/v1.0.2/reference)