Bondya commited on
Commit
e3d3afa
·
verified ·
1 Parent(s): 279ac52

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +39 -72
index.html CHANGED
@@ -616,21 +616,21 @@
616
  "3m_state_ncd": 1.5,
617
  "overnight_rate": 1.28,
618
 
619
- "gov_bond_under_1y": 1.52,
620
- "gov_bond_under_2y": 1.57,
621
- "gov_bond_under_3y": 1.67,
622
- "gov_bond_under_5y": 1.85,
623
 
624
  "ncd_1y_state": 1.62,
625
- "ncd_1y_aaa": 1.65,
626
- "ncd_1y_aa": 1.7,
627
 
628
- "credit_1y_aaa_plus": 1.65,
629
- "credit_1y_aaa": 1.7,
630
  "credit_1y_aa": 2.1,
631
  "credit_2y_aaa_plus": 1.77,
632
  "credit_2y_aaa": 1.8,
633
- "credit_2y_aa": 2.33,
634
  };
635
 
636
  // 资产预期收益率区间(使用您提供的数据)
@@ -666,91 +666,58 @@
666
  }
667
  };
668
 
669
- // 计算基础收益率(不含资本利得)- 已更新为您要求的配置
670
  function calculateBaseReturn() {
671
  let baseReturn = 0;
672
  let leverage = 100;
673
 
674
  if (period === 'SHORT') {
675
- // 短期限配置 - 无杠杆
676
  if (risk === 'CONSERVATIVE') {
677
- // 保守:7天通知存款50%,实时3m国股行同业存单20%,实时隔夜利率30%
678
  baseReturn = defaultReturns['7d_notice_deposit'] * 0.5 +
679
- defaultReturns['3m_state_ncd'] * 0.2 +
680
- defaultReturns['overnight_rate'] * 0.3;
681
  } else if (risk === 'NEUTRAL') {
682
- // 中性:7天通知存款40%,实时3m国股行同业存单35%,实时隔夜利率25%
683
- baseReturn = defaultReturns['7d_notice_deposit'] * 0.4 +
684
- defaultReturns['3m_state_ncd'] * 0.35 +
685
  defaultReturns['overnight_rate'] * 0.25;
686
  } else { // AGGRESSIVE
687
- // 激进:7天通知存款30%,实时3m国股行同业存单50%,实时隔夜利率20%
688
- baseReturn = defaultReturns['7d_notice_deposit'] * 0.3 +
689
- defaultReturns['3m_state_ncd'] * 0.5 +
690
  defaultReturns['overnight_rate'] * 0.2;
691
  }
692
  } else if (period === 'MEDIUM') {
693
- // 中期限配置
694
  if (risk === 'CONSERVATIVE') {
695
- // 保守:1y以下利率政金债15%,2y以下利率政金债15%,
696
- // 1y国股行同业存单15%,1yAAA同业存单15%,
697
- // 1yAAA+信用债20%,1yAAA信用债20%,不加杠杆
698
- baseReturn = defaultReturns['gov_bond_under_1y'] * 0.15 +
699
- defaultReturns['gov_bond_under_2y'] * 0.15 +
700
- defaultReturns['ncd_1y_state'] * 0.15 +
701
- defaultReturns['ncd_1y_aaa'] * 0.15 +
702
- defaultReturns['credit_1y_aaa_plus'] * 0.2 +
703
- defaultReturns['credit_1y_aaa'] * 0.2;
704
- leverage = 100; // 不加杠杆
705
  } else if (risk === 'NEUTRAL') {
706
- // 中性:1y以下利率政金债10%,2y以下利率政金债15%,
707
- // 1yAAA行同业存单15%,1yAA同业存单15%,
708
- // 1yAAA信用债25%,1yAA信用债20%,杠杆率110
709
- baseReturn = defaultReturns['gov_bond_under_1y'] * 0.1 +
710
- defaultReturns['gov_bond_under_2y'] * 0.15 +
711
- defaultReturns['ncd_1y_aaa'] * 0.15 +
712
- defaultReturns['ncd_1y_aa'] * 0.15 +
713
- defaultReturns['credit_1y_aaa'] * 0.25 +
714
- defaultReturns['credit_1y_aa'] * 0.2;
715
- leverage = 110; // 杠杆率110
716
  } else { // AGGRESSIVE
717
- // 激进:1y以下利率政金债10%,2y以下利率政金债10%,
718
- // 1yAA同业存单30%,1yAA信用债50%,杠杆率120
719
- baseReturn = defaultReturns['gov_bond_under_1y'] * 0.1 +
720
- defaultReturns['gov_bond_under_2y'] * 0.1 +
721
  defaultReturns['ncd_1y_aa'] * 0.3 +
722
- defaultReturns['credit_1y_aa'] * 0.5;
723
- leverage = 120; // 杠杆率120
724
  }
725
- } else { // LONG - 长期限
726
  if (risk === 'CONSERVATIVE') {
727
- // 保守:3y以下利率政金债15%,2y以下利率政金债15%,
728
- // 1y国股行同业存单15%,1yAAA同业存单15%,
729
- // 2yAAA+信用债20%,2yAAA信用债20%,不加杠杆
730
- baseReturn = defaultReturns['gov_bond_under_3y'] * 0.15 +
731
- defaultReturns['gov_bond_under_2y'] * 0.15 +
732
- defaultReturns['ncd_1y_state'] * 0.15 +
733
- defaultReturns['ncd_1y_aaa'] * 0.15 +
734
- defaultReturns['credit_2y_aaa_plus'] * 0.2 +
735
- defaultReturns['credit_2y_aaa'] * 0.2;
736
- leverage = 100; // 不加杠杆
737
  } else if (risk === 'NEUTRAL') {
738
- // 中性:3y以下利率政金债10%,5y以下利率政金债15%,
739
- // 1yAAA行同业存单15%,1yAA同业存单15%,
740
- // 1yAAA信用债25%,1yAA信用债20%,杠杆率110
741
- baseReturn = defaultReturns['gov_bond_under_3y'] * 0.1 +
742
- defaultReturns['gov_bond_under_5y'] * 0.15 +
743
- defaultReturns['ncd_1y_aaa'] * 0.15 +
744
- defaultReturns['ncd_1y_aa'] * 0.15 +
745
- defaultReturns['credit_1y_aaa'] * 0.25 +
746
- defaultReturns['credit_1y_aa'] * 0.2;
747
- leverage = 110; // 杠杆率110
748
  } else { // AGGRESSIVE
749
- // 激进:5y以下利率政金债20%,1yAA同业存单30%,2yAA信用债50%,杠杆率120
750
- baseReturn = defaultReturns['gov_bond_under_5y'] * 0.2 +
751
  defaultReturns['ncd_1y_aa'] * 0.3 +
752
- defaultReturns['credit_2y_aa'] * 0.5;
753
- leverage = 120; // 杠杆率120
754
  }
755
  }
756
 
 
616
  "3m_state_ncd": 1.5,
617
  "overnight_rate": 1.28,
618
 
619
+ "gov_bond_under_1y": 1.33,
620
+ "gov_bond_under_2y": 1.38,
621
+ "gov_bond_under_3y": 1.41,
622
+ "gov_bond_under_5y": 1.55,
623
 
624
  "ncd_1y_state": 1.62,
625
+ "ncd_1y_aaa": 1.64,
626
+ "ncd_1y_aa": 1.68,
627
 
628
+ "credit_1y_aaa_plus": 1.62,
629
+ "credit_1y_aaa": 1.66,
630
  "credit_1y_aa": 2.1,
631
  "credit_2y_aaa_plus": 1.77,
632
  "credit_2y_aaa": 1.8,
633
+ "credit_2y_aa": 2.9,
634
  };
635
 
636
  // 资产预期收益率区间(使用您提供的数据)
 
666
  }
667
  };
668
 
669
+ // 计算基础收益率(不含资本利得)
670
  function calculateBaseReturn() {
671
  let baseReturn = 0;
672
  let leverage = 100;
673
 
674
  if (period === 'SHORT') {
 
675
  if (risk === 'CONSERVATIVE') {
 
676
  baseReturn = defaultReturns['7d_notice_deposit'] * 0.5 +
677
+ defaultReturns['3m_state_ncd'] * 0.1 +
678
+ defaultReturns['overnight_rate'] * 0.4;
679
  } else if (risk === 'NEUTRAL') {
680
+ baseReturn = defaultReturns['7d_notice_deposit'] * 0.5 +
681
+ defaultReturns['3m_state_ncd'] * 0.25 +
 
682
  defaultReturns['overnight_rate'] * 0.25;
683
  } else { // AGGRESSIVE
684
+ baseReturn = defaultReturns['7d_notice_deposit'] * 0.4 +
685
+ defaultReturns['3m_state_ncd'] * 0.4 +
 
686
  defaultReturns['overnight_rate'] * 0.2;
687
  }
688
  } else if (period === 'MEDIUM') {
 
689
  if (risk === 'CONSERVATIVE') {
690
+ baseReturn = defaultReturns['gov_bond_under_1y'] * 0.5 +
691
+ defaultReturns['ncd_1y_state'] * 0.4 +
692
+ defaultReturns['credit_1y_aaa_plus'] * 0.1;
693
+ leverage = 100;
 
 
 
 
 
 
694
  } else if (risk === 'NEUTRAL') {
695
+ baseReturn = defaultReturns['gov_bond_under_1y'] * 0.3 +
696
+ defaultReturns['ncd_1y_aaa'] * 0.4 +
697
+ defaultReturns['credit_1y_aaa'] * 0.3;
698
+ leverage = 110;
 
 
 
 
 
 
699
  } else { // AGGRESSIVE
700
+ baseReturn = defaultReturns['gov_bond_under_1y'] * 0.3 +
 
 
 
701
  defaultReturns['ncd_1y_aa'] * 0.3 +
702
+ defaultReturns['credit_1y_aa'] * 0.4;
703
+ leverage = 120;
704
  }
705
+ } else { // LONG
706
  if (risk === 'CONSERVATIVE') {
707
+ baseReturn = defaultReturns['gov_bond_under_2y'] * 0.5 +
708
+ defaultReturns['ncd_1y_state'] * 0.4 +
709
+ defaultReturns['credit_2y_aaa_plus'] * 0.1;
710
+ leverage = 100;
 
 
 
 
 
 
711
  } else if (risk === 'NEUTRAL') {
712
+ baseReturn = defaultReturns['gov_bond_under_3y'] * 0.3 +
713
+ defaultReturns['ncd_1y_aaa'] * 0.4 +
714
+ defaultReturns['credit_2y_aaa'] * 0.3;
715
+ leverage = 110;
 
 
 
 
 
 
716
  } else { // AGGRESSIVE
717
+ baseReturn = defaultReturns['gov_bond_under_5y'] * 0.3 +
 
718
  defaultReturns['ncd_1y_aa'] * 0.3 +
719
+ defaultReturns['credit_2y_aa'] * 0.4;
720
+ leverage = 120;
721
  }
722
  }
723