Summary
Implement the first-class portfolio orchestration workflow for app integrators.
This work should:
- keep current single-instrument execution intact
- aggregate existing sleeve-level runs instead of introducing a shared-cash simulator
- expose both a canonical
BKEngine portfolio path and a simpler BKAppFacade basket-review path
- return aggregate portfolio results plus per-sleeve outcomes/failures
Scope
- Add
BKEngine.PortfolioRequest and BKEngine.runPortfolio(...)
- Add app-facing basket import/review helpers
- Add portfolio models for sleeves, allocations, rebalance policies, aggregate summaries, and structured failures
- Extend export/report helpers for stable portfolio JSON/CSV/Markdown outputs
- Add tests for orchestration semantics, façade workflows, and export adapters
Notes
- Primary audience: app integrators
- v1 should support per-sleeve config, explicit weights plus helper-derived weights, and simple periodic/manual rebalance rules
- Out of scope: shared-cash simulation, event-driven rebalance logic, persistence layers
Summary
Implement the first-class portfolio orchestration workflow for app integrators.
This work should:
BKEngineportfolio path and a simplerBKAppFacadebasket-review pathScope
BKEngine.PortfolioRequestandBKEngine.runPortfolio(...)Notes