First-reported versus current values
compare_versionsFor one fiscal period of a company, compare every line item as first reported (the original filing) with its current value (after any restatement, reclassification or correction in later filings), with the proofs of both versions so each can be traced to its filing. The result lists each concept with first_reported, current, changed, delta and delta_percent, and counts how many items changed. Use it for restatement reviews, earnings-quality work and to explain why a number in an old report differs from today's database. Optionally restrict to one concept. Costs two standardized reads. If a dataset, field, company or analysis you need is missing, call request_data.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company": "ticker:AAPL",
"statement": "income_statement",
"fiscal_year": 2023,
"fiscal_period": "FY"
},
"name": "compare_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company | Yes | Company identifier: a FinancialMD id ("fmd_01H..."), an SEC CIK ("cik:320193"), or a ticker ("ticker:AAPL", optionally with the MIC "ticker:AAPL.XNAS"). A bare ticker like "AAPL" is accepted and sent as ticker:AAPL. An issuer on an EU or UK regulated market that does not file with the SEC has no CIK: pass its LEI ("lei:IOG4E947OATN0KJYSD45") or its fmd_ id. | |
| concept | No | Optional: compare only this standardized concept id. | |
| statement | Yes | Which financial statement. | |
| fiscal_year | Yes | Fiscal year as the filer labels it (for example 2024 for Apple's year ending 2024-09-28). | |
| period_type | No | Period basis to search; defaults to annual for FY and quarterly for Q1 to Q4. | |
| fiscal_period | Yes | Fiscal period label: FY for the full year, or Q1, Q2, Q3, Q4. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | statement, the matched period, rows with first_reported and current value objects (each with proof), changed_count and row_count. | |
| meta | No | Request metadata: request_id, as_of, company resolution, coverage, pipeline_version, licence, terms, proof_base. | |
| error | No | Present only on isError results: the API error code and message plus remedy hints. |