🚀
Finter
PlaygroundData Catalogue
Quick Start
Quick Start
  • Getting Started with Finter: A Quick Guide
  • Explore Finter
    • Finter Labs (Recommended)
    • Other Ways
      • Google Colab
      • Conda, venv, or Docker
      • Setting Up a .env File (Optional)
  • Framework
    • CM (Content Model)
    • AM (Alpha Model)
    • PM (Portfolio Model)
    • Simulatior
      • Target Volume Limit
    • Finter Cli Submission
      • Validation
      • GitHub Sync
      • [Legacy] JupyterLab Submission
      • [Legacy] Submission
  • MODELING
    • MetaPortfolio
      • Equal weight meta portfolio
      • Fixed weight meta portfolio
      • Risk parity meta portfolio
    • StrategicAssetAllocation
    • DateConverter
    • BuyHoldConverter
  • Supporting Tools
    • FileManager
    • Finter AI (alpha ver.)
    • Data
      • FinHelper
        • filter_unchanged
        • unify_idx
        • shift_fundamental
        • rolling
        • expand_to_gvkeyiid
      • ModelData
      • ID Table
      • ID Converter
      • Quanda Data
    • Evaluator
      • top_n_assets
      • bottom_n_assets
      • compare_with_bm
    • PortfolioAnalyzer
    • Email
Powered by GitBook
On this page
  • Import
  • Example Code (Class Definition)
  • Method

Was this helpful?

Edit on GitHub
  1. MODELING
  2. MetaPortfolio

Risk parity meta portfolio

This MetaClass is for making risk parity portfolio of several alphas.

Import

from finter.modeling.metamodel.portfolio.risk_parity_portfolio import (
    RiskParityMetaPortfolio,
)
from finter.framework_model.submission.config import ModelUniverseConfig

Example Code (Class Definition)

Portfolio = RiskParityMetaPortfolio.create(
    RiskParityMetaPortfolio.Parameters(
        universe=ModelUniverseConfig.KR_STOCK,
        alpha_list=[
            "krx.krx.stock.ywcho.peter",
            "krx.krx.stock.ywcho.gusty",
        ],
        risk = "Volatility",
        lookback_periods = "6M",
        rebalancing_periods = "1M"      
    )
)
  • universe (ModelUniverseConfig): Determines the universe of the portfolio.

  • alpha_list (list): Contains the list of models to be used for portfolio creation.

  • risk (str): Determines the method to calculate 'risk'.

    • There are three available options ['Volatility', 'MDD', 'TuW'].

  • lookback_periods (str): Determines the duration used to calculate historical risk.

    • There are 3 available options ['3M', '6M', '12M']

  • rebalancing_periods (str): Determines the duration for rebalancing the portfolio.

    • There are 3 available options ['1W', '1M', '1Q']

Method

  • get(start: int, end: int) : Generate positions within the created portfolio from YYYYmmdd(start) to YYYYmmdd(end).

  • submit(model_name : str) : Submits the model with the specified name.

  • get_source_code( ) : Displays the source code of the submitted or submitting model.

Last updated 18 days ago

Was this helpful?