OKGroup: fix currency name on GetAccountInfo (#273)

OKGroup: fix currency name on GetAccountInfo
This commit is contained in:
Vadim Zhuk
2019-04-06 03:42:07 +03:00
committed by Adrian Gallagher
parent 6c8f8ff66b
commit 3956613831

View File

@@ -159,7 +159,7 @@ func (o *OKGroup) GetAccountInfo() (resp exchange.AccountInfo, err error) {
log.Errorf("Could not convert %v to float64", curr.Balance)
}
currencyAccount.Currencies = append(currencyAccount.Currencies, exchange.AccountCurrencyInfo{
CurrencyName: currency.NewCode(curr.ID),
CurrencyName: currency.NewCode(curr.Currency),
Hold: hold,
TotalValue: totalValue,
})