Skip to content
/ goxchange Public

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

License

Notifications You must be signed in to change notification settings

hnkw/goxchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages