hnkw / goxchange

goxchange is universal client library to access bitcoin exchanges with zaif and coincheck in Japan.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

goxchange

Multi-service bitcoin exchange client. Currently goxchange provides zaif and coincheck.

Installation

go get github.com/hnkw/goxchange

Example

preparation

Set your credencials to enviroment valiables

Zaif

export ZaifAPIKey=<your-zaif-api-key>
export ZaifAPISecret=<your-zaif-api-scecret>

Coincheck

export CoincheckAPIKey=<your-coincheck-api-key>
export CoincheckAPISecret=<your-coincheck-api-scecret>

use library

see detail

c := zaif.NewDefaultClient()
e := zaif.NewDefaultExchange()
exc := zaif.NewAdapter(e, c)

// use as goxchange.Exchange interface
depo, err := exc.Deposit()
if err != nil {
	// handle error
}
fmt.Printf("depo %+v", depo)

License

MIT

Author

Kenji Hanakawa

About

goxchange is universal client library to access bitcoin exchanges with zaif and coincheck in Japan.

License:MIT License


Languages

Language:Go 100.0%