private async Task RefreshData(bool refresh = true, bool message = false) { if (refresh) { IsRefreshing = true; } else { IsLoading = true; } if (Settings.FunctionRoot != string.Empty) { var history = await _api.GetHistoricTrades(); Items = history.Trades; TotalProfit = history.TotalProfit; TodaysProfit = history.TodaysProfit; HasTotalProfit = history.HasTotalProfit; HasTodayProfit = history.HasTodayProfit; OverallBalance = history.OverallBalance; await GetEuroPrice(); } if (refresh) { IsRefreshing = false; } else { IsLoading = false; } }