Book portfolio
get_book_portfolioGet a resolved book's portfolio: market-cap-weighted vs SPY ("cap", the default, the portfolio the ledger's verdict grades) or equal-weighted vs RSP ("equal"), with each long pick's weight and graded return, the book return, the benchmark return and its evidence, alpha and verdict. Equal weights always pair with RSP and cap weights with SPY. Per prediction, books serve the two as equal_weight and market_cap_weight; never read a pick's cap_weight as either without checking inference_metadata.weighting. Use this for one book's result, and get_simulation_nav for the running portfolio across books. An ungraded or unknown date is an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weighting | No | "cap" for market-cap weights against SPY (the default), or "equal" for equal weights against RSP. | cap |
| trading_date | Yes | The book's trading date, as YYYY-MM-DD. list_resolved_batches gives the graded dates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||