public PriceHistoryResponse GetFundPriceHistory(PriceHistoryRequest payload) { var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmFundBaseUrl + "/Fund/PriceHistory"; var encryptedValue = new SecureCredentials(); payload.ServiceUsername = encryptedValue.DecryptCredentials(_configSettingManager.ArmServiceUsername); payload.ServicePassword = encryptedValue.DecryptCredentials(_configSettingManager.ArmServicePassword); return(_client.CallRestAction <PriceHistoryResponse, PriceHistoryRequest>(payload, url)); }
//currently api can't pull from test db as endpoint has not been written. //pulling directly from the tesdb. public PriceHistoryResponse GetFundPriceHistory(string fundcode) { var request = new PriceHistoryRequest { FundCode = fundcode, StartDate = DateTime.Now.AddYears(-1), EndDate = DateTime.Now }; var response = _clientService.GetFundPriceHistory(request); return(response); }