Skip to content

Commit

Permalink
fixup! Kraken: Move SeedAssets from Setup to Start
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Oct 4, 2023
1 parent 1abe52e commit 7e2cbc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions exchanges/kraken/kraken_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,11 @@ func (k *Kraken) UpdateAccountInfo(ctx context.Context, assetType asset.Item) (a
var info account.Holdings
var balances []account.Balance
info.Exchange = k.Name
if !assetTranslator.Seeded() {
if err := k.SeedAssets(ctx); err != nil {
return info, err
}
}
switch assetType {
case asset.Spot:
bal, err := k.GetBalance(ctx)
Expand Down

0 comments on commit 7e2cbc3

Please sign in to comment.