Skip to content

Exchange Rest And WebSocket API For Golang Wrapper support okcoin,okex,huobi,hbdm,bitmex,coinex,poloniex,bitfinex,bitstamp,binance,kraken,bithumb,zb,hitbtc,fcoin, coinbene

License

Notifications You must be signed in to change notification settings

youluo1230/goex

 
 

Repository files navigation

介绍

  • 统一并标准化各个数字资产交易平台的接口
  • 某些功能组件做到可插拔化,方便开发者二次开发

goex

示例

package main

import (
	"github.com/nntaoli-project/goex/v2"
	"github.com/nntaoli-project/goex/v2/binance"
	"github.com/nntaoli-project/goex/v2/logger"
	. "github.com/nntaoli-project/goex/v2/model"
)

func main() {
	logger.SetLevel(logger.DEBUG)
	goex.DefaultHttpCli.SetTimeout(15)
	goex.DefaultHttpCli.SetProxy("socks5://127.0.0.1:2220")
	
	baSpot := binance.Spot.MarketApi()
	ticker, err := baSpot.GetTicker(CurrencyPair{Symbol: "BTCUSDT"})
	if err != nil {
		logger.Error(err)
		return
	}
	logger.Infof("%+v", ticker)
}

About

Exchange Rest And WebSocket API For Golang Wrapper support okcoin,okex,huobi,hbdm,bitmex,coinex,poloniex,bitfinex,bitstamp,binance,kraken,bithumb,zb,hitbtc,fcoin, coinbene

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%