From 447961d900b03d4fc9a07f884cc5843ffe452a2b Mon Sep 17 00:00:00 2001 From: Frank Zhou <529808348@qq.com> Date: Sun, 12 Apr 2020 11:33:11 +0800 Subject: [PATCH] Rename --- README.md | 18 +++++++++--------- README_en.md | 19 +++++++++---------- brokers/consts.go | 14 +++++++------- 3 files changed, 25 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 8159ddc..c359f50 100644 --- a/README.md +++ b/README.md @@ -31,15 +31,15 @@ * 支持实盘 ## 支持交易所 -| 交易所 | 回测 | 实盘 | Broker | -| ----------------------------------------------------- |------------------ | ----------------- | ----------------- | -| [BitMEX](https://www.bitmex.com/register/o0Duru) | Yes | Yes | [Sim](https://github.com/coinrust/crex/tree/master/brokers/bitmex-sim-broker) / [Live](https://github.com/coinrust/crex/tree/master/brokers/bitmex-broker) | -| [Deribit](https://www.deribit.com/reg-7357.93) | Yes | Yes | [Sim](https://github.com/coinrust/crex/tree/master/brokers/deribit-sim-broker) / [Live](https://github.com/coinrust/crex/tree/master/brokers/deribit-broker) | -| [Bybit](https://www.bybit.com/app/register?ref=qQggy) | No | Yes | [Live](https://github.com/coinrust/crex/tree/master/brokers/bybit-broker) | -| [Huobi DM](https://www.huobi.io/zh-cn/topic/invited/?invite_code=7hzc5) | No | Yes | [Live](https://github.com/coinrust/crex/tree/master/brokers/hbdm-broker) | -| [Huobi Swap](https://www.huobi.io/zh-cn/topic/invited/?invite_code=7hzc5) | No | Yes | [Live](https://github.com/coinrust/crex/tree/master/brokers/hbdm-swap-broker) | -| [OKEX Futures](https://www.okex.com/join/1890951) | No | Yes | [Live](https://github.com/coinrust/crex/tree/master/brokers/okex-futures-broker) | -| [OKEX Swap](https://www.okex.com/join/1890951) | No | Yes | [Live](https://github.com/coinrust/crex/tree/master/brokers/okex-swap-broker) | +| name | id | ver | doc | +| ------------------------------------------------------------------------- | -------------- | --- | ----------------------------------------------------------------- | +| [BitMEX](https://www.bitmex.com/register/o0Duru) | bitmex | 1 | [API](https://www.bitmex.com/app/apiOverview) | +| [Deribit](https://www.deribit.com/reg-7357.93) | deribit | 2 | [API](https://docs.deribit.com/) | +| [Bybit](https://www.bybit.com/app/register?ref=qQggy) | bybit | 2 | [API](https://bybit-exchange.github.io/docs/inverse/) | +| [Huobi DM](https://www.huobi.io/zh-cn/topic/invited/?invite_code=7hzc5) | hbdm | 1 | [API](https://docs.huobigroup.com/docs/dm/v1/cn/) | +| [Huobi Swap](https://www.huobi.io/zh-cn/topic/invited/?invite_code=7hzc5) | hbdmswap | 1 | [API](https://docs.huobigroup.com/docs/coin_margined_swap/v1/cn/) | +| [OKEX Futures](https://www.okex.com/join/1890951) | okexfutures | 3 | [API](https://www.okex.me/docs/zh/#futures-README) | +| [OKEX Swap](https://www.okex.com/join/1890951) | okexswap | 3 | [API](https://www.okex.me/docs/zh/#swap-README) | ## 示例 ```golang diff --git a/README_en.md b/README_en.md index 23a82ed..b09561c 100644 --- a/README_en.md +++ b/README_en.md @@ -31,16 +31,15 @@ See [@live trading](https://github.com/coinrust/crex/blob/master/examples/live/m * Backtesting and live-trading functionality. ### Supported Exchanges -| Exchange Name | Backtesting | Live trading | Broker | -| ----------------------------------------------------- |------------------ | ----------------- | ----------------- | -| ----------------------------------------------------- |------------------ | ----------------- | ----------------- | -| [BitMEX](https://www.bitmex.com/register/o0Duru) | Yes | Yes | [Sim](https://github.com/coinrust/crex/tree/master/brokers/bitmex-sim-broker) / [Live](https://github.com/coinrust/crex/tree/master/brokers/bitmex-broker) | -| [Deribit](https://www.deribit.com/reg-7357.93) | Yes | Yes | [Sim](https://github.com/coinrust/crex/tree/master/brokers/deribit-sim-broker) / [Live](https://github.com/coinrust/crex/tree/master/brokers/deribit-broker) | -| [Bybit](https://www.bybit.com/app/register?ref=qQggy) | No | Yes | [Live](https://github.com/coinrust/crex/tree/master/brokers/bybit-broker) | -| [Huobi DM](https://www.huobi.io/zh-cn/topic/invited/?invite_code=7hzc5) | No | Yes | [Live](https://github.com/coinrust/crex/tree/master/brokers/hbdm-broker) | -| [Huobi Swap](https://www.huobi.io/zh-cn/topic/invited/?invite_code=7hzc5) | No | Yes | [Live](https://github.com/coinrust/crex/tree/master/brokers/hbdm-swap-broker) | -| [OKEX Futures](https://www.okex.com/join/1890951) | No | Yes | [Live](https://github.com/coinrust/crex/tree/master/brokers/okex-futures-broker) | -| [OKEX Swap](https://www.okex.com/join/1890951) | No | Yes | [Live](https://github.com/coinrust/crex/tree/master/brokers/okex-swap-broker) | +| name | id | ver | doc | +| ------------------------------------------------------------------------- | -------------- | --- | ----------------------------------------------------------------- | +| [BitMEX](https://www.bitmex.com/register/o0Duru) | bitmex | 1 | [API](https://www.bitmex.com/app/apiOverview) | +| [Deribit](https://www.deribit.com/reg-7357.93) | deribit | 2 | [API](https://docs.deribit.com/) | +| [Bybit](https://www.bybit.com/app/register?ref=qQggy) | bybit | 2 | [API](https://bybit-exchange.github.io/docs/inverse/) | +| [Huobi DM](https://www.huobi.io/zh-cn/topic/invited/?invite_code=7hzc5) | hbdm | 1 | [API](https://docs.huobigroup.com/docs/dm/v1/cn/) | +| [Huobi Swap](https://www.huobi.io/zh-cn/topic/invited/?invite_code=7hzc5) | hbdmswap | 1 | [API](https://docs.huobigroup.com/docs/coin_margined_swap/v1/cn/) | +| [OKEX Futures](https://www.okex.com/join/1890951) | okexfutures | 3 | [API](https://www.okex.me/docs/zh/#futures-README) | +| [OKEX Swap](https://www.okex.com/join/1890951) | okexswap | 3 | [API](https://www.okex.me/docs/zh/#swap-README) | ### Example ```golang diff --git a/brokers/consts.go b/brokers/consts.go index f68bfd9..cd5afb0 100644 --- a/brokers/consts.go +++ b/brokers/consts.go @@ -1,11 +1,11 @@ package brokers const ( - BitMEX = "BitMEX" - Deribit = "Deribit" - Bybit = "Bybit" - HBDM = "HBDM" - HBDMSwap = "HBDMSwap" - OKEXFutures = "OKEXFutures" - OKEXSwap = "OKEXSwap" + BitMEX = "bitmex" + Deribit = "deribit" + Bybit = "bybit" + HBDM = "hbdm" + HBDMSwap = "hbdmswap" + OKEXFutures = "okexfutures" + OKEXSwap = "okexswap" )