public double GetBalance(string currency) { try { if (Exchange.GetBalance(this, currency)) { BalanceBase res = Balances.FirstOrDefault(b => b.Currency == currency); return(res == null? 0: res.Available); } return(-1); } catch (Exception e) { Telemetry.Default.TrackException(e); return(-1); } }
public bool UpdateBalance(AccountInfo account, string symbol) { return(Exchange.GetBalance(account, symbol)); }