mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Fixes holding amounts got btse and gemini (#738)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user