repositorypackage
0.0.0-20210122232018-0d42fb1dcb9c
Repository: https://github.com/fernandez14/bitso.git
Documentation: pkg.go.dev
# README
Bitso API golang client

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}