Skip to content

n-shaburoff/bitso

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitso API golang client Go GoDoc

The Bitso API in a gopher friendly way

This library uses dghubble/sling internally: A Go HTTP client library for creating and sending API requests.

Features

  • V3 partial coverage
  • Params and responses with custom structs.
  • HMAC authentication implemented.
  • Context for requests available.

Install

go get github.com/fernandez14/bitso

Documentation

Read GoDoc

Usage

Use bitso to set path, method, header, query, or body properties and create an http.Request.

// A example request to ticker endpoint... 
srv := bitso.New(http.DefaultClient, "account_api_secret")
res, err := srv.Ticker(context.Background(), "btc_mxn")
if err != nil {
    log.Error(err)
}
log.Printf("success=%+v", res.Success)
log.Printf("tick=%+v", res.Tick)
// tick={Book:btc_mxn High:381830.40 Vwap:375965.0682188447 Volume:174.82970689 Last:377297.63 Low:369472.00 Ask:377297.59 Bid:376409.35 Change24:4097.63}

About

The Bitso API in a gopher friendly way

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%