Fixes holding amounts got btse and gemini (#738)

This commit is contained in:
Scott
2021-08-05 12:02:00 +10:00
committed by GitHub
parent d638f0b9fb
commit 547d123984
2 changed files with 2 additions and 2 deletions

View File

@@ -392,7 +392,7 @@ func (b *BTSE) UpdateAccountInfo(assetType asset.Item) (account.Holdings, error)
account.Balance{
CurrencyName: currency.NewCode(balance[b].Currency),
TotalValue: balance[b].Total,
Hold: balance[b].Available,
Hold: balance[b].Total - balance[b].Available,
},
)
}

View File

@@ -317,7 +317,7 @@ func (g *Gemini) UpdateAccountInfo(assetType asset.Item) (account.Holdings, erro
var exchangeCurrency account.Balance
exchangeCurrency.CurrencyName = currency.NewCode(accountBalance[i].Currency)
exchangeCurrency.TotalValue = accountBalance[i].Amount
exchangeCurrency.Hold = accountBalance[i].Available
exchangeCurrency.Hold = accountBalance[i].Amount - accountBalance[i].Available
currencies = append(currencies, exchangeCurrency)
}