Skip to content
/ goex Public
forked from nntaoli-project/goex

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

100btcer/goex

 
 

Repository files navigation

介绍

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

goex

示例

package main

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

func main() {
	logger.SetLevel(logger.DEBUG)
	goex.DefaultHttpCli.SetTimeout(15)
	goex.DefaultHttpCli.SetProxy("socks5://127.0.0.1:2220")

	baSpot := huobi.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

Packages

No packages published

Languages

  • Go 100.0%