feat(portfolios): add unified ledger history API
This commit is contained in:
@@ -333,6 +333,16 @@ class PortfolioRepository(Protocol):
|
||||
|
||||
def list_manual_ledger_entries(self, portfolio_id: str, limit: int = 50) -> list[LedgerEntry]: ...
|
||||
|
||||
def list_ledger_entries(
|
||||
self,
|
||||
portfolio_id: str,
|
||||
*,
|
||||
source: str | None = None,
|
||||
before_recorded_at: datetime | None = None,
|
||||
before_ledger_entry_id: int | None = None,
|
||||
limit: int = 50,
|
||||
) -> list[LedgerEntry]: ...
|
||||
|
||||
def get_return_summary(self, portfolio_id: str) -> dict[str, float]: ...
|
||||
|
||||
def get_return_summaries(self, portfolio_ids: list[str]) -> dict[str, dict[str, float]]: ...
|
||||
|
||||
Reference in New Issue
Block a user