Skip to content

xuyangcn/go-exchange-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-ccex-api-Client - a Client for Bitcoin exchanges

GoDoc Build Status Coverage Status Maintenance

This package presents a client for cryptocoin exchange api.

Example

package main

import (
	"fmt"
	"github.com/xuyangcn/go-exchange-client/api/public"
	"github.com/xuyangcn/go-exchange-client/api/private"
	"github.com/xuyangcn/go-exchange-client/models"
)

func main() {
	bitflyerPublicApi,err := public.NewClient("bitflyer")
	if err != nil {
    		panic(err)
    }
    currencyPairs,err := bitflyerPublicApi.CurrencyPairs()
    if err != nil {
    		panic(err)
    }
    for _,v := range currencyPairs {
    	fmt.Println(bitflyerPublicApi.Rate(v.Trading,v.Settlement))
    	fmt.Println(bitflyerPublicApi.Volume(v.Trading,v.Settlement))
    }
    
    bitflyerPrivateApi,err := private.NewClient("bitflyer","APIKEY","SECRETKEY")
    bitflyerPrivateApi.Balances()
    bitflyerPrivateApi.Order("BTC","USDT",models.Bid,10000.0,1)
}

API Documents

PublicAPI

fetchRate() Volume() CurrencyPairs() Rate() FrozenCurrency() Board()
Bitflyer Done Done Done Done Done Done
Poloniex Done Done Done Done Done Done
Hitbtc Done Done Done Done Done Done
Huobi Done Done Done Done Done Done
Okex Done Done Done Done Done Done
Cobinhood Done Done Done Done Done Done
Lbank Done Done Done Done Done Done
Kucoin Done Done Done Done Done Done

PrivateAPI

Order() CancelOrder() SellFeeRate() PurchaseFeeRate() Balances() CompleteBalances() ActiveOrders() TransferFee() Transfer() Address() Precise()
Bitflyer Done Done Done Done Done Done Done Done Done Done Done
Poloniex Done Done Done Done Done Done Done Done Done Done Done
Hitbtc Done Done Done Done Done Done Done Done Done Done Done
Huobi Done Done Done Done Done Done Done Done Done Done Done
Lbank Done Done Done Done Done Done Done Done Done Done Done
Kucoin Done Done Done Done Done Done Done Done Done Done Done

About

go-ccex-api-client is a client for Bitcoin Exchanges implemented with Go lang. Poloniex/Hitbtc/Bitflyer etc...

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.7%
  • Other 0.3%