Skip to content

Commit

Permalink
Updated Coinbase to GDAX.
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasher- committed Aug 6, 2016
1 parent 1b3bfbf commit 16982e3
Show file tree
Hide file tree
Showing 6 changed files with 215 additions and 215 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A cryptocurrency trading bot supporting multiple exchanges written in Golang.
| BTCC | Yes | Yes | No |
| BTCE | Yes | NA | NA |
| BTCMarkets | Yes | NA | NA |
| Coinbase | Yes | Yes | No|
| GDAX(Coinbase) | Yes | Yes | No|
| Gemini | Yes | NA | NA |
| Huobi | Yes | Yes |No |
| ItBit | Yes | NA | NA |
Expand Down
4 changes: 2 additions & 2 deletions config_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"BaseCurrencies": "AUD"
},
{
"Name": "Coinbase",
"Name": "GDAX",
"Enabled": true,
"Verbose": false,
"Websocket": false,
Expand All @@ -124,7 +124,7 @@
"APIKey": "Key",
"APISecret": "Secret",
"ClientID": "ClientID",
"AvailablePairs": "BTCUSD,BTCGBP,BTCEUR",
"AvailablePairs": "BTCUSD,ETHUSD,BTCGBP,BTCEUR,BTCCAD,ETHBTC",
"EnabledPairs": "BTCUSD,BTCGBP,BTCEUR",
"BaseCurrencies": "USD,GBP,EUR"
},
Expand Down
6 changes: 3 additions & 3 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ func (e *Event) CheckCondition() bool {
} else {
lastPrice = result.Last
}
} else if bot.exchange.coinbase.GetName() == e.Exchange {
result, err := bot.exchange.coinbase.GetTicker("BTC-USD")
} else if bot.exchange.gdax.GetName() == e.Exchange {
result, err := bot.exchange.gdax.GetTicker("BTC-USD")
if err != nil {
lastPrice = 0
} else {
Expand Down Expand Up @@ -293,7 +293,7 @@ func IsValidExchange(Exchange string) bool {
bot.exchange.btcc.GetName() == Exchange && bot.exchange.btcc.IsEnabled() ||
bot.exchange.btce.GetName() == Exchange && bot.exchange.btce.IsEnabled() ||
bot.exchange.btcmarkets.GetName() == Exchange && bot.exchange.btcmarkets.IsEnabled() ||
bot.exchange.coinbase.GetName() == Exchange && bot.exchange.coinbase.IsEnabled() ||
bot.exchange.gdax.GetName() == Exchange && bot.exchange.gdax.IsEnabled() ||
bot.exchange.huobi.GetName() == Exchange && bot.exchange.huobi.IsEnabled() ||
bot.exchange.itbit.GetName() == Exchange && bot.exchange.itbit.IsEnabled() ||
bot.exchange.kraken.GetName() == Exchange && bot.exchange.kraken.IsEnabled() ||
Expand Down
Loading

0 comments on commit 16982e3

Please sign in to comment.