Skip to content

Add FastAPI-based portfolio optimization service entrypoint#37

Open
RiyanshiTomar wants to merge 2 commits intoGeomScale:mainfrom
RiyanshiTomar:main
Open

Add FastAPI-based portfolio optimization service entrypoint#37
RiyanshiTomar wants to merge 2 commits intoGeomScale:mainfrom
RiyanshiTomar:main

Conversation

@RiyanshiTomar
Copy link

Solved : #22

Description
-> Add src/api_core.py with OptimizationConfig, parse_csv_payload, and optimize_least_squares which prepares OptimizationData, configures Constraints, runs LeastSquares, and returns weights and metrics.

-> Add src/fastapi_app.py exposing POST /api/v1/optimize that accepts a CSV file and optional JSON params, maps them to OptimizationConfig, and returns HTTP 400 on validation or solver errors.

->Add requirements-web.txt and Dockerfile to simplify local and containerized deployment, and update README.md with usage, example params, and run instructions using uvicorn.

Please review and merge this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant