Select optimal stocks to maximize expected returns while meeting sector exposure constraints.
| Ticker | Company | Sector | Predicted Return | Weight |
|---|---|---|---|---|
| Click "Solve" to optimize your portfolio | ||||
| Selected | Ticker | Company | Sector | Predicted Return | Weight |
|---|---|---|---|---|---|
| Loading stock data... | |||||
Use these endpoints to integrate portfolio optimization into your application.
Retrieve a pre-configured portfolio with sample stocks.
curl -X GET http://localhost:8080/demo-data/SMALL
Start the solver to find the optimal stock selection.
curl -X POST -H "Content-Type: application/json" \
-d @portfolio.json \
http://localhost:8080/portfolios
Poll for the latest solution while the solver is running.
curl -X GET http://localhost:8080/portfolios/{jobId}
Terminate the solver and retrieve the best solution found.
curl -X DELETE http://localhost:8080/portfolios/{jobId}
Get a detailed breakdown of constraint scores for a given solution.
curl -X PUT -H "Content-Type: application/json" \
-d @portfolio.json \
http://localhost:8080/portfolios/analyze
Interactive API documentation powered by Swagger UI.