go get github.com/asxcandrew/golang-exmo
package main
import (
"fmt"
"github.com/asxcandrew/golang-exmo/v1"
)
client := exmo.NewClient()
pairs := []string{"BTC_USD", "ETC_USD"}
trades, err := client.Trades.Get(pairs)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(trades)
}
client := exmo.NewClient().Auth(key, secret)
client := exmo.NewClient().Auth(key, secret)
order, err := client.Order.Create("ETH_UAH", 0.02, 1000.0, "buy")
if err == nil {
fmt.Println(order)
}
See examples
All integration tests are stored in tests/integration
directory.
Run tests using:
export EXMO_API_KEY="api-key"
export EXMO_API_SECRET="api-secret"
go test -v ./tests/integration
- Fork it (https://github.com/asxcandrew/golang-exmo/fork)
- Create your feature branch (`git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request