Skip to content
/ go-zaif Public

zaif is exchange market for bitcoin and monacoin

License

Notifications You must be signed in to change notification settings

ka2n/go-zaif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zaif

zaif is exchange market for bitcoin and monacoin. you can also trade if you have api-key of zaif.

install

go get github.com/yanakend/zaif
# install depend on package
go get github.com/google/go-querystring/query

usage

package main

import (
	"github.com/yanakend/zaif-api"
	"log"
)

func main() {
	zaifPrivateAPI := zaif_api.NewPrivateAPI(
		"Input key here",
		"Input secret key here",
	)
	price := zaif_api.PublicAPI.LastPrice("btc_jpy")
	log.Println(price)
	history := zaifPrivateAPI.DepositHistory(zaif_api.BodyDepositHistory{Currency: "jpy", Order: "ASC"})
	log.Println(history)
}

Public API

PublicAPI.LastPrice

PublicAPI.Ticker

PublicAPI.Trades

PublicAPI.Depth

PublicAPI.Withdraw

PublicAPI.DepositHistory

PublicAPI.WithdrawHistory

Private API

PrivateAPI.GetInfo

PrivateAPI.ActiveOrders

PrivateAPI.Trade

PrivateAPI.Cancel

PrivateAPI.Withdraw

PrivateAPI.DepositHistory

PrivateAPI.WithdrawHistory

About

zaif is exchange market for bitcoin and monacoin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages