Skip to content

Commit

Permalink
Merge pull request thrasher-corp#86 from bretep/HitBTC
Browse files Browse the repository at this point in the history
Add Exchange: HitBTC
  • Loading branch information
thrasher- authored Feb 4, 2018
2 parents fca7e5e + 71333b2 commit 9e71a8f
Show file tree
Hide file tree
Showing 11 changed files with 1,149 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ Manuel Kreutz - 140am
libsora.so - if1live
Tong - tongxiaofeng
Jamie Cheng - starit
Jake - snipesjr
Jake - snipesjr
Bret Palsson - bretep
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader
| COINUT | Yes | No | NA |
| GDAX(Coinbase) | Yes | Yes | No|
| Gemini | Yes | NA | NA |
| HitBTC | Yes | Yes | NA |
| Huobi.Pro | Yes | No |No |
| ItBit | Yes | NA | NA |
| Kraken | Yes | NA | NA |
Expand Down
4 changes: 2 additions & 2 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestGetEnabledExchanges(t *testing.T) {
}

exchanges := cfg.GetEnabledExchanges()
if len(exchanges) != 23 {
if len(exchanges) != 24 {
t.Error(
"Test failed. TestGetEnabledExchanges. Enabled exchanges value mismatch",
)
Expand Down Expand Up @@ -141,7 +141,7 @@ func TestGetDisabledExchanges(t *testing.T) {
}

func TestCountEnabledExchanges(t *testing.T) {
defaultEnabledExchanges := 23
defaultEnabledExchanges := 24
GetConfigEnabledExchanges := GetConfig()
err := GetConfigEnabledExchanges.LoadConfig(ConfigTestFile)
if err != nil {
Expand Down
21 changes: 21 additions & 0 deletions config_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,27 @@
"Uppercase": true
}
},
{
"Name": "HitBTC",
"Enabled": true,
"Verbose": false,
"Websocket": false,
"UseSandbox": false,
"RESTPollingDelay": 10,
"AuthenticatedAPISupport": false,
"APIKey": "Key",
"APISecret": "Secret",
"AvailablePairs": "BTCUSD,ETHBTC,ETHUSD",
"EnabledPairs": "BTCUSD",
"BaseCurrencies": "USD",
"AssetTypes": "SPOT",
"ConfigCurrencyPairFormat": {
"Uppercase": true
},
"RequestCurrencyPairFormat": {
"Uppercase": true
}
},
{
"Name": "Huobi",
"Enabled": true,
Expand Down
3 changes: 3 additions & 0 deletions exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/thrasher-/gocryptotrader/exchanges/coinut"
"github.com/thrasher-/gocryptotrader/exchanges/gdax"
"github.com/thrasher-/gocryptotrader/exchanges/gemini"
"github.com/thrasher-/gocryptotrader/exchanges/hitbtc"
"github.com/thrasher-/gocryptotrader/exchanges/huobi"
"github.com/thrasher-/gocryptotrader/exchanges/itbit"
"github.com/thrasher-/gocryptotrader/exchanges/kraken"
Expand Down Expand Up @@ -150,6 +151,8 @@ func LoadExchange(name string) error {
exch = new(gdax.GDAX)
case "gemini":
exch = new(gemini.Gemini)
case "hitbtc":
exch = new(hitbtc.HitBTC)
case "huobi":
exch = new(huobi.HUOBI)
case "itbit":
Expand Down
Loading

0 comments on commit 9e71a8f

Please sign in to comment.