}
+ if _, ok := config.Config["key"]; !ok {
+ config.Config["key"] = ""
+ }
+
+ if _, ok := config.Config["secret"]; !ok {
+ config.Config["secret"] = ""
+ }
+
return config.Config, nil
}
}
if config.Config["key"] == "" || config.Config["secret"] == "" {
- return nil, &Error{BadRequest, "your credentials for this market are not setup", fmt.Errorf("'%v' credentials are not setup", q.In.Market)}
+ return nil, &Error{InvalidMarketCredentials, "your credentials for this market are not setup", fmt.Errorf("'%v' credentials are not setup", q.In.Market)}
}
result := struct {