public static string GetFullStockcode(string stockCode, StockExchanges exchange) { switch (exchange) { case StockExchanges.BSE: return(stockCode + ".BO"); case StockExchanges.NSE: return(stockCode + ".NS"); } return(string.Empty); }
public Default(M_Stock stockElement, SimulationType simType) : base(simulationType: simType) { _stockElement = stockElement; _stockElement.StockExchanges = new List <T_StockExchange> { // Initial Value new T_StockExchange { StockId = stockElement.Id, ExchangeType = ExchangeType.Insert, Quantity = stockElement.StartValue, State = State.Finished, RequiredOnTime = 0, Time = 0 } }; _stockElement.Current = stockElement.StartValue; _providerList = new StockExchanges(); _requestedArticles = new ArticleList(); }