Example #1
0
        public HashSet <int> GetSecurityIds(int fundId)
        {
            int           securityCount = AttributionDataProvider.GetFundSecurityCount(fundId);
            HashSet <int> securityIds   = AttributionDataProvider.GetRandomNumbers(new Random(), 1, 100, securityCount);

            return(securityIds);
        }
Example #2
0
 private Action <DataPerDateReqMsg> GetAttributionData()
 {
     return(msg =>
     {
         Random randomInstance = (msg.Extras != null && msg.Extras.ContainsKey(RandomInstanceKey)) ? msg.Extras[RandomInstanceKey] as Random : new Random();
         var attribDataPerDate = AttributionDataProvider.GetAttributionDataForADate(randomInstance, msg.FundId, msg.SecurityId, msg.ContextDate);
         Sender.Tell(attribDataPerDate);
     });
 }