Ejemplo n.º 1
0
 def __init__(self,
              daily_maturing_asset_pct,
              weekly_maturing_asset_pct,
              ls1d_liquid=None,
              d2t7_liquid=None,
              d829_liquid=None,
              a30d_liquid=None):
     super().__init__()
     self.DalyMtrgAsstRate = pmmfr.PercentageBoundedRate(
         daily_maturing_asset_pct)
     self.WklyMtrgAsstRate = pmmfr.PercentageBoundedRate(
         weekly_maturing_asset_pct)
     self.PrtflLqdtyBrkdwn.append(
         PrtflLqdtyBrkdwn(range_type='LS1D', perf=ls1d_liquid))
     self.PrtflLqdtyBrkdwn.append(
         PrtflLqdtyBrkdwn(range_type='D2T7', perf=d2t7_liquid))
     self.PrtflLqdtyBrkdwn.append(
         PrtflLqdtyBrkdwn(range_type='D829', perf=d829_liquid))
     self.PrtflLqdtyBrkdwn.append(
         PrtflLqdtyBrkdwn(range_type='A30D', perf=a30d_liquid))
Ejemplo n.º 2
0
 def __init__(self, investor_bank_pct, investor_general_govt_pct,
              investor_household_pct, investor_insurance_pct,
              investor_non_fin_pct, investor_mmf_pct,
              investor_other_fin_pct, investor_pension_fund_pct,
              investor_unknown_pct):
     super().__init__()
     self.BkRate = pmmfr.PercentageBoundedRate(investor_bank_pct)
     self.GnlGovntRate = pmmfr.PercentageBoundedRate(
         investor_general_govt_pct)
     self.HsHldRate = pmmfr.PercentageBoundedRate(investor_household_pct)
     self.InsrncCorptnRate = pmmfr.PercentageBoundedRate(
         investor_insurance_pct)
     self.NonFinCorptnRate = pmmfr.PercentageBoundedRate(
         investor_non_fin_pct)
     self.NonMnyMktFndInvstmtFndRate = pmmfr.PercentageBoundedRate(
         investor_mmf_pct)
     self.OthrFIRate = pmmfr.PercentageBoundedRate(investor_other_fin_pct)
     self.PnsnPlanOrFndRate = pmmfr.PercentageBoundedRate(
         investor_pension_fund_pct)
     self.UknwnRate = pmmfr.PercentageBoundedRate(investor_unknown_pct)
Ejemplo n.º 3
0
 def __init__(
         self,
         highest_beneficial_owner_pct,
         prof_estimated_rate,
         prof_precise_rate,
         retail_estimated_rate,
         retail_precise_rate,
         investor_bank_pct,
         investor_general_govt_pct,
         investor_household_pct,
         investor_insurance_pct,
         investor_non_fin_pct,
         investor_mmf_pct,
         investor_other_fin_pct,
         investor_pension_fund_pct,
         investor_unknown_pct,
         country_breakdown_pct,  # list
         redemption_frequency,  # enum -> in static schema...
         notice_period,
         arrangement_breakdown_pct,  # list
         other_arrangement,
         monthly_nav,  # list,
         monthly_subs,  # list
         monthly_redemption,  # list
         monthly_payment,  # list
         monthly_xrate  # list of dict ccy/xrate
 ):
     super().__init__()
     self.HghstBnfclOwnrRate = pmmfr.PercentageBoundedRate(
         highest_beneficial_owner_pct)
     self.InvstrCncntrtn = InvstrCncntrtn(prof_estimated_rate,
                                          prof_precise_rate,
                                          retail_estimated_rate,
                                          retail_precise_rate)
     for _ in range(9):
         self.InvstrGrpBrkdwn.append(
             InvestorGroupBreakdown(
                 investor_bank_pct=investor_bank_pct,
                 investor_general_govt_pct=investor_general_govt_pct,
                 investor_household_pct=investor_household_pct,
                 investor_insurance_pct=investor_insurance_pct,
                 investor_non_fin_pct=investor_non_fin_pct,
                 investor_mmf_pct=investor_mmf_pct,
                 investor_other_fin_pct=investor_other_fin_pct,
                 investor_pension_fund_pct=investor_pension_fund_pct,
                 investor_unknown_pct=investor_unknown_pct))
     for country in country_breakdown_pct:
         for ctry, pct in country.items():
             self.BrkdwnByCtry.append(CountryPct(ctry, pct))
     self.RedDealgFrqcy = pmmfr.EventFrequency9Code__1(redemption_frequency)
     self.NtceDays = pmmfr.Max3Number(notice_period)
     for arrangement in arrangement_breakdown_pct:
         for arrangement_type, pct in arrangement.items():
             self.BrkdwnByArrgmnt.append(
                 BrkdwnByArrgmnt(arrangement_type=arrangement_type,
                                 pct=pct))
     self.OthrArrgmntAddtlInf = pmmfr.Max350Text(
         other_arrangement) if other_arrangement else None
     self.MnthlyNetAsstValPerUnitInf = MnthlyValue(monthly_val=monthly_nav)
     self.MnthlySbcptInf = MnthlyValue(monthly_val=monthly_subs)
     self.MnthlyRedInf = MnthlyValue(monthly_val=monthly_redemption)
     self.MnthlyPmtToInvstrInf = MnthlyValue(monthly_val=monthly_payment)
     self.MnthlyXchgRateInf = MonthValue2__2(monthly_val=monthly_xrate)
Ejemplo n.º 4
0
 def __init__(self, arrangement_type, pct):
     super().__init__()
     self.ArrgmntTp = pmmfr.ArrangementType4Code(arrangement_type)
     self.NetAsstValRate = pmmfr.PercentageBoundedRate(pct)
Ejemplo n.º 5
0
 def __init__(self, ctry, pct):
     super().__init__()
     self.CtryOfRes = Country1Choice__3(ctry=ctry)
     self.Rate = pmmfr.PercentageBoundedRate(pct)
Ejemplo n.º 6
0
 def __init__(self, estimated_rate, precise_rate):
     super().__init__()
     self.EstmtdRate = pmmfr.PercentageBoundedRate(estimated_rate)
     self.PreciseRate = pmmfr.PercentageBoundedRate(precise_rate)
Ejemplo n.º 7
0
 def __init__(self, perf=None):
     super().__init__()
     if perf:
         self.Rate = pmmfr.PercentageBoundedRate(perf)
     else:
         self.NotAvlblVal = pmmfr.NotAvailable1Code('NTAV')