diff --git a/exchanges/kraken/kraken_wrapper.go b/exchanges/kraken/kraken_wrapper.go index eb9de5e320f..eb942977f57 100644 --- a/exchanges/kraken/kraken_wrapper.go +++ b/exchanges/kraken/kraken_wrapper.go @@ -210,11 +210,6 @@ func (k *Kraken) Setup(exch *config.Exchange) error { return err } - err = k.SeedAssets(context.TODO()) - if err != nil { - return err - } - wsRunningURL, err := k.API.Endpoints.GetURL(exchange.WebsocketSpot) if err != nil { return err @@ -272,6 +267,11 @@ func (k *Kraken) Run(ctx context.Context) { k.PrintEnabledPairs() } + if err := k.SeedAssets(context.TODO()); err != nil { + log.Errorf(log.ExchangeSys, "%s failed to Seed Assets; err: %s", k.Name, err) + return + } + forceUpdate := false if !k.BypassConfigFormatUpgrades { format, err := k.GetPairFormat(asset.UseDefault(), false) @@ -349,6 +349,12 @@ func (k *Kraken) UpdateOrderExecutionLimits(ctx context.Context, a asset.Item) e return common.ErrNotYetImplemented } + if !assetTranslator.Seeded() { + if err := k.SeedAssets(ctx); err != nil { + return err + } + } + pairInfo, err := k.fetchSpotPairInfo(ctx) if err != nil { return fmt.Errorf("%s failed to load %s pair execution limits. Err: %s", k.Name, a, err)