aboutsummaryrefslogtreecommitdiff
path: root/markets/poloniex.go
diff options
context:
space:
mode:
authorjloup <jeanloup.jamet@gmail.com>2018-05-10 16:22:29 +0200
committerjloup <jeanloup.jamet@gmail.com>2018-05-10 16:22:29 +0200
commit299b6b6d9fb879c06e675ef240f361348629ff6c (patch)
tree27909cd54e53d58e612da93e15f1005af86870ec /markets/poloniex.go
parent3b8833854f83f75e3d16c1fdb869937f690e48ea (diff)
downloadFront-299b6b6d9fb879c06e675ef240f361348629ff6c.tar.gz
Front-299b6b6d9fb879c06e675ef240f361348629ff6c.tar.zst
Front-299b6b6d9fb879c06e675ef240f361348629ff6c.zip
Add column 'status' to market_configs.v0.0.9
Diffstat (limited to 'markets/poloniex.go')
-rw-r--r--markets/poloniex.go4
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
26func poloniexRestrictedIPError(err error) bool { 26func 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
71func (p *Poloniex) GetBalance(apiKey, apiSecret string) (Summary, error) { 71func (p *Poloniex) GetBalance(apiKey, apiSecret string) (Summary, error) {