From 830e2b3c8c1110dab7ba5bc00695b048f88a6fbb Mon Sep 17 00:00:00 2001 From: djbadders <34887832+djbadders@users.noreply.github.com> Date: Wed, 17 Apr 2019 08:16:57 +0100 Subject: [PATCH] Stop ticker using PT data as it no longer needs it --- Monitor/Pages/_get/TickerWidgets.cshtml | 6 ------ Monitor/Pages/_get/TickerWidgets.cshtml.cs | 2 -- Monitor/_Internal/BasePageModel.cs | 1 - 3 files changed, 9 deletions(-) diff --git a/Monitor/Pages/_get/TickerWidgets.cshtml b/Monitor/Pages/_get/TickerWidgets.cshtml index f5a48b1..1d31c99 100644 --- a/Monitor/Pages/_get/TickerWidgets.cshtml +++ b/Monitor/Pages/_get/TickerWidgets.cshtml @@ -9,12 +9,6 @@ singleSettingInfoIcon = "Single Market Settings active for:
-" + Core.Helper.SystemHelper.ConvertListToTokenString(Model.MarketsWithSingleSettings, "
-", true) + "\" data-template=\"\">
"; } - double currentBalance = Model.PTData.GetCurrentBalance(); - string currentBalanceString = currentBalance.ToString("#,#0.00000000", new System.Globalization.CultureInfo("en-US")); - if (currentBalance > 100) { - currentBalanceString = Math.Round(currentBalance, 2).ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")); - } - DateTime lastRuntime = Model.Summary.LastRuntime; double elapsedSecondsSinceRuntime = DateTime.UtcNow.Subtract(lastRuntime).TotalSeconds; double intervalSeconds = Model.PTMagicConfiguration.AnalyzerSettings.MarketAnalyzer.IntervalMinutes * 60.0; diff --git a/Monitor/Pages/_get/TickerWidgets.cshtml.cs b/Monitor/Pages/_get/TickerWidgets.cshtml.cs index 3c65fb2..2788b4d 100644 --- a/Monitor/Pages/_get/TickerWidgets.cshtml.cs +++ b/Monitor/Pages/_get/TickerWidgets.cshtml.cs @@ -20,8 +20,6 @@ namespace Monitor.Pages { } private void BindData() { - PTData = new ProfitTrailerData(PTMagicConfiguration); - // Get markets with active single settings foreach (string key in Summary.MarketSummary.Keys) { if (Summary.MarketSummary[key].ActiveSingleSettings != null) { diff --git a/Monitor/_Internal/BasePageModel.cs b/Monitor/_Internal/BasePageModel.cs index 30a8bee..7557f37 100644 --- a/Monitor/_Internal/BasePageModel.cs +++ b/Monitor/_Internal/BasePageModel.cs @@ -58,7 +58,6 @@ namespace Monitor._Internal PTMagicBasePath += Path.DirectorySeparatorChar; } - try { PTMagicConfiguration = new PTMagicConfiguration(PTMagicBasePath);