zaif

package module
v0.0.0-...-3814b32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2018 License: MIT Imports: 7 Imported by: 0

README

zaif-go

Zaif API wrapper for Golang.

Please use at your own risk.

Zaif https://zaif.jp/

Zaif API Document https://techbureau-api-document.readthedocs.io/ja/latest/index.html

Install

go get github.com/naoki-maeda/zaif-go
go get github.com/stretchr/testify

Example

const (
	publicEndpoint = "https://api.zaif.jp/api/1"
	privateEndpoint = "https://api.zaif.jp/tapi"
)

publicApi := public.NewApiClient(publicEndpoint)
currency, err := publicApi.Currencies("btc")
if err != nil {
    fmt.Println(err)
}
fmt.Println(currency)

privateApi := private.NewApiClient("API_KEY", "SECRET_KEY", privateEndpoint)
getInfo, err := privateApi.GetInfo()
if err != nil {
    fmt.Println(err)
}
fmt.Println(getInfo)

LICENCE

This software is released under the MIT License, see LICENSE.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBody

func DecodeBody(resp *http.Response, out interface{}) error

func GetNonce

func GetNonce() string

func Sign

func Sign(params string, secret string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL