compare_entities
Compare up to 10 entities across 10 financial concepts for one fiscal year, returning a matrix of consolidated values and issuer metadata.
Instructions
Build a comparison matrix for N entities × M concepts at one period.
Cap N=10, M=10 (more answers a 422 validation error). ALWAYS prefer this
over N×get_fact when comparing more than one company. Returns one row per
entity with metadata (sector, country, auditor) + a cells map keyed by
hub_concept_code → CompareCell.
Consolidated values only, one value per (entity, hub, year), aligned on the
calendar: for each issuer, the fiscal year whose period_end falls in
fiscal_year (FY forced). A non-December filer can therefore read a
different value here than from get_fact for the same fiscal_year.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_ids | Yes | ||
| fiscal_year | Yes | ||
| hub_concept_codes | Yes | ||
| fiscal_period_type | No | FY |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| notes | No | ||
| fiscal_year | Yes | ||
| period_alignment | No | How rows were aligned across issuers. 'calendar_year': a cell is the row whose period_end falls in [YYYY-01-01, YYYY-12-31], so a non-December filer may be shown a different fiscal year than the one its own annual report labels. Compare period_start / period_end / fiscal_year on each cell to see the span actually served. | calendar_year |
| fiscal_period_type | Yes |