Skip to content

Commit

Permalink
Added support for Bithumb exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
shazbert committed Jan 31, 2018
1 parent 039dd2e commit 3b8835d
Show file tree
Hide file tree
Showing 9 changed files with 1,029 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader
| Alphapoint | Yes | Yes | NA |
| ANXPRO | Yes | No | NA |
| Bitfinex | Yes | Yes | NA |
| Bithumb | Yes | NA | NA |
| Bitstamp | Yes | Yes | NA |
| Bittrex | Yes | No | NA |
| BTCC | Yes | Yes | No |
Expand Down Expand Up @@ -103,7 +104,7 @@ copy %GOPATH%\src\github.com\thrasher-\gocryptotrader\config_example.json %GOPAT

<img src="https://github.com/thrasher-/gocryptotrader/blob/master/web/src/assets/early-dumb-donate.png?raw=true" hspace="70">

If this framework helped you in any way, or you would like to support the developers working on it, please donate Bitcoin to:
If this framework helped you in any way, or you would like to support the developers working on it, please donate Bitcoin to:

***1F5zVDgNjorJ51oGebSvNCrSAHpwGkUdDB***

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) != 20 {
if len(exchanges) != 21 {
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 := 20
defaultEnabledExchanges := 21
GetConfigEnabledExchanges := GetConfig()
err := GetConfigEnabledExchanges.LoadConfig(ConfigTestFile)
if err != nil {
Expand Down
24 changes: 23 additions & 1 deletion config_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,28 @@
"Uppercase": true
}
},
{
"Name": "Bithumb",
"Enabled": true,
"Verbose": false,
"Websocket": false,
"UseSandbox": false,
"RESTPollingDelay": 10,
"AuthenticatedAPISupport": false,
"APIKey": "Key",
"APISecret": "Secret",
"ClientID": "ClientID",
"AvailablePairs": "BTCKRW,ETHKRW,DASHKRW,LTCKRW,ETCKRW,XRPKRW,BCHKRW,XMRKRW,ZECKRW,QTUMKRW,BTGKRW,EOSKRW",
"EnabledPairs": "BTCKRW,ETHKRW,DASHKRW,LTCKRW,ETCKRW,XRPKRW,BCHKRW,XMRKRW,ZECKRW,QTUMKRW,BTGKRW,EOSKRW",
"BaseCurrencies": "KRW",
"AssetTypes": "SPOT",
"ConfigCurrencyPairFormat": {
"Uppercase": true
},
"RequestCurrencyPairFormat": {
"Uppercase": true
}
},
{
"Name": "Bitstamp",
"Enabled": true,
Expand Down Expand Up @@ -501,4 +523,4 @@
}
}
]
}
}
3 changes: 3 additions & 0 deletions exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
exchange "github.com/thrasher-/gocryptotrader/exchanges"
"github.com/thrasher-/gocryptotrader/exchanges/anx"
"github.com/thrasher-/gocryptotrader/exchanges/bitfinex"
"github.com/thrasher-/gocryptotrader/exchanges/bithumb"
"github.com/thrasher-/gocryptotrader/exchanges/bitstamp"
"github.com/thrasher-/gocryptotrader/exchanges/bittrex"
"github.com/thrasher-/gocryptotrader/exchanges/btcc"
Expand Down Expand Up @@ -129,6 +130,8 @@ func LoadExchange(name string) error {
exch = new(anx.ANX)
case "bitfinex":
exch = new(bitfinex.Bitfinex)
case "bithumb":
exch = new(bithumb.Bithumb)
case "bitstamp":
exch = new(bitstamp.Bitstamp)
case "bittrex":
Expand Down
Loading

0 comments on commit 3b8835d

Please sign in to comment.