Categorygithub.com/nntaoli-project/goex
modulepackage
1.3.3
Repository: https://github.com/nntaoli-project/goex.git
Documentation: pkg.go.dev

# README

build

goex目标

goex项目是为了统一并标准化各个数字资产交易平台的接口而设计,同一个策略可以随时切换到任意一个交易平台,而不需要更改任何代码。

English

wiki文档

文档

goex已支持交易所 23+

交易所行情接口交易接口版本号
huobi.proYY1
hbdm.comY (REST / WS)Y1
okex.com (spot/future)Y (REST / WS)Y1
okex.com (swap future)YY2
binance.comYY1
kucoin.comYY1
bitstamp.netYY1
bitfinex.comYY1
zb.comYY1
kraken.comYY*
poloniex.comYY*
big.oneYY2|3
hitbtc.comYY*
coinex.comYY1
exx.comYY1
bithumb.comYY*
gate.ioYN1
bittrex.comYN1.1

安装goex库

go get

go get github.com/nntaoli-project/goex

建议go mod 管理依赖

require (
          github.com/nntaoli-project/goex latest
)

注意事项

  1. 推荐使用GoLand开发。
  2. 推荐关闭自动格式化功能,代码请使用go fmt 格式化.
  3. 不建议对现已存在的文件进行重新格式化,这样会导致commit特别糟糕。
  4. 请用OrderID2这个字段代替OrderID
  5. 请不要使用deprecated关键字标注的方法和字段,后面版本可能随时删除的

donate

BTC: 1GoExWZop4JCJQkjb1UgtVGpjBKmP4DvG8

USDT(TRC20): TGoExC6xvzE4wSA9cYZnwcPaXEjibA5Vtc

欢迎为作者付一碗面钱

微信 支付宝

# Packages

# Functions

* * call all unfinished future orders * @return c 成功撤单数量 */.
* * call all unfinished orders */.
for bitfinex.com*/.
* *md5签名,okcoin和huobi适用 */.
* 本函数只适合,返回两个参数的API重试调用,其中一个参数必须是error @retry 重试次数 @delay 每次重试延迟时间间隔 @method 调用的函数,比如: api.GetTicker ,注意:不是api.GetTicker(...) @params 参数,顺序一定要按照实际调用函数入参顺序一样 @return 返回 */.

# Constants

exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
法币.
平多.
平空.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
交割合约.
币安双向持仓模式.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
k线周期.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
开多.
开空.
ORDER_FEATURE_POST_ONLY
exchanges const.
币币交易.
币币杠杆交易.
子账户.
永续合约.
usdt本位永续合约.
余币宝.
资金账户.
exchanges const.

# Variables

# Structs

# Interfaces

# Type aliases