Skip to content

Implement portfolio orchestration API for app integrators #1

@andywkff

Description

@andywkff

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions