Peer Comparables
get_peer_comparablesGet ratio-based peer comparison for a company and its closest competitors. Peers are selected by matching 2-digit SIC industry code. Returns pipeline-computed ratios from up to 10 peers alongside the subject company for direct benchmarking. Ratio categories: profitability, liquidity, leverage, efficiency, per_share, owner_earnings, valuation. TTM (trailing twelve months) ratios are used when available for the most current view. Use as_of_date to compare peers at a specific historical date. PIT semantics for the figure leg are data-driven: when the ratio data carries an SEC accepted_at timestamp, as_of_date filters point-in-time by accepted_at (zero look-ahead, _meta.pit_safe=true); when it does not (today's data), the cut is by ratio.period_end (_meta.pit_safe=false). NOTE: peer SELECTION still uses CURRENT S&P 500 membership as a size/relevance ranking proxy regardless of as_of_date (W3-G2). Available on every plan — sample returns the subset covered by the sample bucket.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of peers to return alongside the subject company (1–10). Defaults to 5. | |
| ticker | Yes | Subject company ticker, e.g. AAPL. Peers are auto-selected by SIC code. | |
| as_of_date | No | Historical cutoff (canonical cross-tool date param) for the FIGURE leg: PIT by ratio accepted_at when present (latest-knowable, zero look-ahead, _meta.pit_safe=true), else by ratio.period_end (pit_safe=false). Peer SELECTION still uses current S&P 500 membership as a ranking proxy regardless of as_of_date (W3-G2). | |
| categories | No | Ratio categories to include in the comparison. Defaults to profitability, valuation, and leverage. | |
| period_end_before | No | Alias of as_of_date (as_of_date preferred — the canonical name). Only include ratios with period_end on or before this date. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | One row per company (subject + peers): ticker, cik, name, sector, industry, is_subject, ratios | |
| note | No | ||
| _meta | Yes | Provenance envelope — data lineage for every MCP response | |
| lineage | No | Provenance for pipeline-derived values (ratio.parquet / factor_scores.parquet): source table + pipeline computed_at, plus a pointer to the tools that return filing-level lineage. NOT point-in-time (recomputed on each pipeline run). | |
| subject | Yes | Subject ticker the peer set is built around | |
| as_of_date | No | ||
| categories | Yes | Ratio categories included in each peer panel | |
| peers_returned | Yes | ||
| subject_ratios | No | The subject company's ratio panel | |
| period_end_before | No |