# README
goex目标
goex项目是为了统一并标准化各个数字资产交易平台的接口而设计,同一个策略可以随时切换到任意一个交易平台,而不需要更改任何代码。
wiki文档
goex已支持交易所 23+
交易所 | 行情接口 | 交易接口 | 版本号 |
---|---|---|---|
huobi.pro | Y | Y | 1 |
hbdm.com | Y (REST / WS) | Y | 1 |
okex.com (spot/future) | Y (REST / WS) | Y | 1 |
okex.com (swap future) | Y | Y | 2 |
binance.com | Y | Y | 1 |
kucoin.com | Y | Y | 1 |
bitstamp.net | Y | Y | 1 |
bitfinex.com | Y | Y | 1 |
zb.com | Y | Y | 1 |
kraken.com | Y | Y | * |
poloniex.com | Y | Y | * |
big.one | Y | Y | 2|3 |
hitbtc.com | Y | Y | * |
coinex.com | Y | Y | 1 |
exx.com | Y | Y | 1 |
bithumb.com | Y | Y | * |
gate.io | Y | N | 1 |
bittrex.com | Y | N | 1.1 |
安装goex库
go get
go get github.com/nntaoli-project/goex
建议go mod 管理依赖
require (
github.com/nntaoli-project/goex latest
)
注意事项
- 推荐使用GoLand开发。
- 推荐关闭自动格式化功能,代码请使用go fmt 格式化.
- 不建议对现已存在的文件进行重新格式化,这样会导致commit特别糟糕。
- 请用OrderID2这个字段代替OrderID
- 请不要使用deprecated关键字标注的方法和字段,后面版本可能随时删除的
donate
BTC: 1GoExWZop4JCJQkjb1UgtVGpjBKmP4DvG8
USDT(TRC20): TGoExC6xvzE4wSA9cYZnwcPaXEjibA5Vtc
欢迎为作者付一碗面钱
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
*
* call all unfinished future orders
* @return c 成功撤单数量
*/.
*
* call all unfinished orders
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
for bitfinex.com*/.
No description provided by the author
No description provided by the author
*
*md5签名,okcoin和huobi适用
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
*
本函数只适合,返回两个参数的API重试调用,其中一个参数必须是error
@retry 重试次数
@delay 每次重试延迟时间间隔
@method 调用的函数,比如: api.GetTicker ,注意:不是api.GetTicker(...)
@params 参数,顺序一定要按照实际调用函数入参顺序一样
@return 返回
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# 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.
No description provided by the author
No description provided by the author
法币.
平多.
平空.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
No description provided by the author
交割合约.
币安双向持仓模式.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
exchanges const.
No description provided by the author
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.
开多.
开空.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
exchanges const.
No description provided by the author
No description provided by the author
No description provided by the author
币币交易.
币币杠杆交易.
子账户.
永续合约.
usdt本位永续合约.
余币宝.
资金账户.
exchanges const.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NEXT QUARTER.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
currency pair.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
次周合约.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
季度合约.
No description provided by the author
永续合约.
No description provided by the author
周合约.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A->B(A兑换为B).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author