diff options
Diffstat (limited to 'markets')
-rw-r--r-- | markets/poloniex.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markets/poloniex.go b/markets/poloniex.go index 58645b2..cadc829 100644 --- a/markets/poloniex.go +++ b/markets/poloniex.go | |||
@@ -20,7 +20,7 @@ func poloniexInvalidCredentialsError(err error) bool { | |||
20 | if err == nil { | 20 | if err == nil { |
21 | return false | 21 | return false |
22 | } | 22 | } |
23 | return strings.Contains(err.Error(), "Invalid API key/secret pair") | 23 | return strings.Contains(err.Error(), "Invalid API key/secret pair") || strings.Contains(err.Error(), "Set the API KEY and API SECRET") |
24 | } | 24 | } |
25 | 25 | ||
26 | func poloniexRestrictedIPError(err error) bool { | 26 | func poloniexRestrictedIPError(err error) bool { |
@@ -65,7 +65,7 @@ func (p *Poloniex) TestCredentials(apiKey, apiSecret string) error { | |||
65 | return utils.Error{IPRestricted, "IP restricted api key"} | 65 | return utils.Error{IPRestricted, "IP restricted api key"} |
66 | } | 66 | } |
67 | 67 | ||
68 | return nil | 68 | return err |
69 | } | 69 | } |
70 | 70 | ||
71 | func (p *Poloniex) GetBalance(apiKey, apiSecret string) (Summary, error) { | 71 | func (p *Poloniex) GetBalance(apiKey, apiSecret string) (Summary, error) { |