hhstore / blog

My Tech Blog: about Mojo / Rust / Golang / Python / Kotlin / Flutter / VueJS / Blockchain etc.
https://github.com/hhstore/blog/issues
285 stars 24 forks source link

Crypto Asset Exchange   #82

Open hhstore opened 6 years ago

hhstore commented 6 years ago

API 类型:

关于 websocket API:

关于 fix API:

fix API 协议 SDK:

exchange ref:

bitmex:

合约:

api doc:

bitfinex:

api doc:

okex:

api doc:

币安(binance):

api doc:

火币(huobi):

api doc:

hhstore commented 6 years ago

exchange api sdk:

python:

hhstore commented 6 years ago

API 限速规则:

bitmex:

rest API:

对我们的 REST API 的请求频率限于每5分钟300次。 此计数连续补充。 如果你没有登录,你的请求是每5分钟150次。

**请注意你的程序抛出的错误数目!**如果在短时间内产生大量的响应(如400或500),你的 IP 可能被禁用一小时。 在短时间内的多个禁用将导致禁用一周。
如果你已超过频率限制,并且认为这是合理的需求,请发电子邮件给我们 support@bitmex.com 来讨论提高你的频率限制。

bitfinex:

rest API:

binance:

火币:

okex:

websocket:

restful API:


# 1. POST /api/v1/future_userinfo 获取OKEx合约账户信息(全仓)
URL https://www.okex.com/api/v1/future_userinfo.do 访问频率 10次/2秒

# 2. POST /api/v1/future_position 获取用户持仓获取OKEX合约账户信息 (全仓)
URL https://www.okex.com/api/v1/future_position.do 访问频率 10次/2秒

# 3. POST /api/v1/future_trade 合约下单
URL https://www.okex.com/api/v1/future_trade.do 访问频率 5次/1秒(按币种单独计算)

# 4. POST /api/v1/future_trades_history 获取OKEX合约交易历史(非个人)访问频率
URL https://www.okex.com/api/v1/future_trades_history 访问频率 2次/2秒

# 5. POST /api/v1/future_batch_trade 批量下单
URL https://www.okex.com/api/v1/future_batch_trade.do 访问频率 3次/1秒 最多一次下1-5个订单(按币种单独计算)

# 6. POST /api/v1/future_cancel 取消合约订单
URL https://www.okex.com/api/v1/future_cancel.do 访问频率 2次/1秒,最多一次撤1-5个订单(按币种单独计算)

# 10. POST /api/v1/future_position_4fix 逐仓用户持仓查询
URL https://www.okex.com/api/v1/future_position_4fix.do 访问频率 10次/2秒
hhstore commented 6 years ago

批量下单API:

bitmex:

image

bitfinex:

okex: