https://github.com/toorop/go-bittrex
Go binding for the Bittrex crypto-currency exchange API.
https://github.com/toorop/go-bittrex
Last synced: about 1 year ago
JSON representation
Go binding for the Bittrex crypto-currency exchange API.
- Host: GitHub
- URL: https://github.com/toorop/go-bittrex
- Owner: toorop
- License: mit
- Created: 2014-04-21T15:00:37.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2022-06-17T06:53:04.000Z (about 4 years ago)
- Last Synced: 2025-03-28T18:14:13.661Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 101 KB
- Stars: 230
- Watchers: 16
- Forks: 102
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - toorop/go-bittrex - Go binding for the Bittrex crypto-currency exchange API. (<a name="Go"></a>Go)
README
go-bittrex [](https://godoc.org/github.com/toorop/go-bittrex)
==========
go-bittrex is an implementation of the Bittrex API (public and private) in Golang.
This version implement V1.1 Bittrex API and the new HMAC authentification.
## Import
import "github.com/toorop/go-bittrex"
## Usage
In order to use the client with go's default http client settings you can do:
~~~ go
package main
import (
"fmt"
"github.com/toorop/go-bittrex"
)
const (
API_KEY = "YOUR_API_KEY"
API_SECRET = "YOUR_API_SECRET"
)
func main() {
// Bittrex client
bittrex := bittrex.New(API_KEY, API_SECRET)
// Get markets
markets, err := bittrex.GetMarkets()
fmt.Println(err, markets)
}
~~~
In order to use custom settings for the http client do:
~~~ go
package main
import (
"fmt"
"net/http"
"time"
"github.com/toorop/go-bittrex"
)
const (
API_KEY = "YOUR_API_KEY"
API_SECRET = "YOUR_API_SECRET"
)
func main() {
httpClient := &http.Client{
Timeout: time.Second * 10,
}
// Bittrex client
bittrex := bittrex.NewWithCustomHttpClient(API_KEY, API_SECRET, httpClient)
// Get markets
markets, err := bittrex.GetMarkets()
fmt.Println(err, markets)
}
~~~
See ["Examples" folder for more... examples](https://github.com/toorop/go-bittrex/blob/master/examples/bittrex.go)
## Documentation
[](https://godoc.org/github.com/toorop/go-bittrex)
## Stay tuned
[Follow me on Twitter](https://twitter.com/poroot)
Donate
------
**toorop** Original Maintainer

[1HgpsmxV52eAjDcoNpVGpYEhGfgN7mM1JB](http://tinyurl.com/mccsoez)
**PrettyBoyHelios** REST API V3 Upgrade
BTC: 3HygqTcCGq7uT8FL5UguvFkeqV2CSto3eE