Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

KopfKrieg/go-wex

 
 

Repository files navigation

Build Status Go Report Card GoDoc Coverage Status

WEX (former BTC-E) API Go Client

Native Go client for interacting with WEX Public API v3 and Trading API.

Usage

package main

import (
	"fmt"
	wex "github.com/onuryilmaz/go-wex"
)

func main() {

	api := wex.API{}

	ticker, err := api.Public.Ticker([]string{"btc_usd"})
	if err == nil {
		fmt.Printf("BTC buy price: %.3f \n", ticker["btc_usd"].Buy)
		fmt.Printf("BTC sell price: %.3f \n", ticker["btc_usd"].Sell)
	}

	info, err := api.Trade.GetInfoAuth("API_KEY", "API_SECRET")
	if err == nil {
		fmt.Printf("BTC amount: %.3f \n", info.Funds["btc"])
	}
}

About

WEX (former BTC-e) API Go Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%