From c573720420fe11d6299ad4e759d018e6a79b366e Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Mon, 20 Jul 2020 13:53:36 +0900 Subject: [PATCH] Baglist Layout & Futures Link --- Core/Helper/SystemHelper.cs | 13 +++++++++++++ Monitor/Pages/SettingsGeneral.cshtml | 3 ++- Monitor/Pages/_get/BagDetails.cshtml | 4 ++-- Monitor/Pages/_get/BagList.cshtml | 6 +++--- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/Core/Helper/SystemHelper.cs b/Core/Helper/SystemHelper.cs index 398b403..73cd7d6 100644 --- a/Core/Helper/SystemHelper.cs +++ b/Core/Helper/SystemHelper.cs @@ -547,6 +547,19 @@ namespace Core.Helper result += pairName; } + else if (platform.Equals("TradingViewFutures")) + { + result = "https://www.tradingview.com/chart/?symbol="; + + string pairName = SystemHelper.StripBadCode(market, Constants.WhiteListMinimal); + + if (pairName.StartsWith(mainMarket)) + { + pairName = pairName.Replace(mainMarket, "") + mainMarket; + } + + result += pairName + "PERP"; + } else { switch (exchange) diff --git a/Monitor/Pages/SettingsGeneral.cshtml b/Monitor/Pages/SettingsGeneral.cshtml index 1fdfa3e..5447e0b 100644 --- a/Monitor/Pages/SettingsGeneral.cshtml +++ b/Monitor/Pages/SettingsGeneral.cshtml @@ -241,8 +241,9 @@