exchanges/binance: Binance.UpdateAccountInfo() now correctly assigns Balance.Hold for spot (#736)

This commit is contained in:
Yordan Miladinov
2021-08-05 05:01:14 +03:00
committed by GitHub
parent 48434dfd46
commit d638f0b9fb

View File

@@ -607,7 +607,7 @@ func (b *Binance) UpdateAccountInfo(assetType asset.Item) (account.Holdings, err
currencyBalance = append(currencyBalance, account.Balance{
CurrencyName: currency.NewCode(raw.Balances[i].Asset),
TotalValue: freeCurrency + lockedCurrency,
Hold: freeCurrency,
Hold: lockedCurrency,
})
}