"time"
"github.com/jloup/utils"
- "immae.eu/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front/db"
- "immae.eu/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front/markets"
+ "git.immae.eu/Cryptoportfolio/Front.git/db"
+ "git.immae.eu/Cryptoportfolio/Front.git/markets"
)
type MarketConfigQuery struct {
}
if config == nil || config.Config["key"] == "" || config.Config["secret"] == "" {
- return nil, &Error{InvalidMarketCredentials, "no market credentials", fmt.Errorf("market credentials are empty for marketId '%v'", q.In.Market)}
+ return nil, &Error{MarketCredentialsNotConfigured, "no market credentials", fmt.Errorf("market credentials are empty for marketId '%v'", q.In.Market)}
}
resultErr := CallExternalService(fmt.Sprintf("'%s' TestCredentials", q.In.Market), EXTERNAL_SERVICE_TIMEOUT_SECONDS*time.Second, func() error {