Esempio n. 1
0
        public YieldHistoryResponse GetFundYieldHistory(YieldHistoryRequest payload)
        {
            var    _client        = new RestActions(_contentRootPath);
            string url            = _configSettingManager.ArmFundBaseUrl + "/Fund/YieldHistory";
            var    encryptedValue = new SecureCredentials();

            payload.ServiceUsername = encryptedValue.DecryptCredentials(_configSettingManager.ArmServiceUsername);
            payload.ServicePassword = encryptedValue.DecryptCredentials(_configSettingManager.ArmServicePassword);
            return(_client.CallRestAction <YieldHistoryResponse, YieldHistoryRequest>(payload, url));
        }
Esempio n. 2
0
        public YieldHistoryResponse GetYieldHistory(string fundcode)
        {
            var request = new YieldHistoryRequest
            {
                FundCode  = fundcode,
                StartDate = DateTime.Now.AddYears(-1),
                EndDate   = DateTime.Now
            };
            var response = _clientService.GetFundYieldHistory(request);

            return(response);
        }