Skip to content

Feature Request: Online Data Loading #155

@GreenlandZZY

Description

@GreenlandZZY

Features requests are well-received but will probably be answered with a
suggestion that you develop them and contribute.

Specifications

  • Problem: Feature request
  • OS: Windows 11
  • Cvxportfolio version: 1.3.1
  • Python version: 3.11.0
  • Cvxpy version: 1.4.3
  • Pandas version: 2.0.3
  • Data: User-provided Factor Model and Return Data

Description

In cvxportfolio, for now it seems to require loading the pandas dataframe before the optimization and backtesting. This could be a issue to have huge universe with a large set of factors and require a huge memory usage for a exploration on a long history.

  • Is it possible to create a query class that can be fed as data, so that at every time t that data is used, conducting the query online?
  • And also export the optimization results and log incrementally to a file at each time point, so that recovering from any crash will be easier to conduct.

If there have already been base classes available to implement these features in cvx-portfolio, could you provide some suggestions? If not, can you add these features? Thank you so much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions