Skip to content

asxcandrew/golang-exmo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Exmo Trading API for Golang.

Installation

go get github.com/asxcandrew/golang-exmo

Usage

Basic requests

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)
	}

Authentication

client := exmo.NewClient().Auth(key, secret)

Order create

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

Testing

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

Contributing

  1. Fork it (https://github.com/asxcandrew/golang-exmo/fork)
  2. Create your feature branch (`git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Golang exmo api wrapper | ready to use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages