Obsolete the PortfolioController.GetStopLimit method. MarketDataServer on Windows is obsolete.
This commit is contained in:
@@ -7,6 +7,7 @@ using MarketDataServer.Authorization;
|
||||
using MarketData.Generator;
|
||||
using MarketData.Generator.GainLoss;
|
||||
using MarketData;
|
||||
using System.Linq;
|
||||
|
||||
namespace MarketDataServer.Controllers
|
||||
{
|
||||
@@ -46,11 +47,12 @@ namespace MarketDataServer.Controllers
|
||||
return PortfolioDA.GetAccountsWithOpenTrades();
|
||||
}
|
||||
|
||||
[Obsolete("This method is obsolete. Use MarketDataServer on ARM64 instead instead.")]
|
||||
public StopLimit GetStopLimit(String token, String symbol)
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG, String.Format("[{0:G}][PortfolioController::GetStopLimit]", DateTime.Now));
|
||||
if (!Authorizations.GetInstance().IsAuthorized(token)) return null;
|
||||
StopLimit stopLimit=PortfolioDA.GetStopLimit(symbol);
|
||||
StopLimit stopLimit = StopLimitDA.GetStopLimits(symbol).FirstOrDefault();
|
||||
return stopLimit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user