Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1015 Bytes

README.md

File metadata and controls

54 lines (36 loc) · 1015 Bytes

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