rank_candidates
Rank every ticker by investment potential without filtering on size, sector, or index membership; attach informational tags for context. Let only your risk caps size the resulting buys, not this ranking.
Instructions
Score every ticker in tickers (screen_stocks) and rank the WHOLE set by potential --
huge and small caps in the same net. Nothing is excluded for being big, small, already
inside an index/ETF, or concentrated in one sector: size, sector and index-overlap are
informational tags attached to each ranked idea (portfolio.picker.annotate), never a
filter. Only the caller's own risk caps (get_portfolio_config's risk_limits, when path
is given) and a later red-team pass should ever limit how big a resulting BUY is sized --
never this ranking itself. top_n only bounds how many of the ranked ideas are returned
in ranked; every scored ticker (minus screening-error placeholders, reported separately
in screening_errors) still counts toward the summary stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Local broker export used only to compute each candidate's hidden-exposure overlap/diversification tag (portfolio.exposure) -- never to filter the ranking. Omit to rank without portfolio context (themes/diversification come back empty/None for every candidate). | |
| top_n | No | ||
| tickers | Yes | ||
| min_confidence | No | Below this confidence, a candidate stays in the ranking but gets a 'low_confidence' tag in its `tags` list -- information, never a filter. |