Commit Latest
This commit is contained in:
@@ -90,6 +90,7 @@ namespace MarketDataServer.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[Obsolete("This method is obsolete. Use GetSopLimits(String token, String symbol) instead.", false)]
|
||||
[HttpGet(Name = "GetStopLimit")]
|
||||
public StopLimit GetStopLimit(String token,String symbol)
|
||||
{
|
||||
@@ -112,6 +113,28 @@ namespace MarketDataServer.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[HttpGet(Name = "GetStopLimits")]
|
||||
public StopLimits GetStopLimits(String token,String symbol)
|
||||
{
|
||||
Profiler profiler = new Profiler();
|
||||
try
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,$"Start");
|
||||
if(!Authorizations.GetInstance().IsAuthorized(token)) return null;
|
||||
StopLimits stopLimits=StopLimitDA.GetStopLimits(symbol);
|
||||
return stopLimits;
|
||||
}
|
||||
catch(Exception exception)
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,$"Exception:{exception.ToString()}");
|
||||
return null;
|
||||
}
|
||||
finally
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,$"Done, total took {profiler.End()} (ms)");
|
||||
}
|
||||
}
|
||||
|
||||
[HttpGet(Name = "GetPortfolioTradesWithParityPrice")]
|
||||
public PortfolioTradesWithParityPrice GetPortfolioTradesWithParityPrice(String token, String symbol)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user