Synthetic demo · real TR.* codes · verified & attested
LSEG fundamentals
company financials you can audit, field by field.
LSEG (London Stock Exchange Group, formerly Refinitiv) company fundamentals, addressed by
real TR.* field codes
over real RICs.
Fin-Telligence reconciles a reported figure to the line items that compose it and
hash-chains the result, with provenance down to the exact LSEG field. It pairs with the
open-source lseg-mcp:
that server gets the field mapping right, Fin-Telligence makes the number auditable.
Two servers, one auditable answer
lseg-mcp — resolves & drafts
The open-source field expert.
TR.*
field, validates it against LSEG's COA/FCC mapping matrix, and drafts the runnable
lseg-data call. It never returns market data — it only
gets the retrieval right.
Fin-Telligence — verifies & attests
The audit layer.
The reconciliation
Two reconciliations, one attested chain
IBM.N · FY2023 · an integrity check and a data check.
Provenance to the field code
Every value cites where it came from.
TR.* code, the retrieval date, and the source feed.
Fundamentals are entity-level, so they key on the stable
Org PermID,
not on the mutable RIC. A figure resolves to its blessed LSEG field the one agreed way, so
“where did this number come from?” has an exact, verifiable answer.
Validated against LSEG's own dictionary
Every field code was checked live through lseg-mcp's
validate_lseg_formula
against LSEG's
COA/FCC mapping matrix.
All nine returned OK.
| LSEG field | Concept | Maps to (COA) | Status |
|---|---|---|---|
TR.Revenue | Revenue | Income Statement · SREV | OK |
TR.CostOfRevenueTotal | Cost of Revenue, Total | Income Statement · SCOR | OK |
TR.GrossProfit | Gross Profit | Income Statement · SGRP | OK |
TR.OperatingIncome | Operating Income | Income Statement · SOPI | OK |
TR.NetIncomeAfterTaxes | Net Income After Taxes | Income Statement · TIAT | OK |
TR.TotalDebtOutstanding | Total Debt | Balance Sheet · STLD | OK |
TR.TotalAssetsReported | Total Assets, Reported | Balance Sheet · ATOT | OK |
TR.PriceClose | Closing price (daily) | Pricing (extended dict) | OK |
TR.CompanyMarketCap | Market capitalisation | Reference (extended dict) | OK |
Validated 2026-09-24 via lseg-mcp. Note: TR.GrossProfit is available for
Industrial issuers, not Bank / Insurance / Utility — so the gross-profit identity
applies to industrials (the seeded RICs are).
How this differs from standard financial AI
| Feature | Standard financial AI / text-to-SQL | Fin-Telligence architecture |
|---|---|---|
| SQL safety | System prompts (“only write SELECT”) or generic DB permissions | Pre-execution AST parsing (guard.js) enforcing SELECT-only, CTE allow-lists, and forced LIMIT bounds |
| Field mapping | The model guesses a field name from the prompt | lseg-mcp resolves the concept to the correct TR.* code and validates it against the COA/FCC matrix before ingest |
| Numeric accuracy | LLM-as-a-judge or prompt engineering to format DB rows | Deterministic post-prose verification (grounding.js) that matches every number back to SQL row outputs |
| Failure mode | Best-guess response with potential rounding or hallucination errors | Explicit refusal. If a single number can't be mapped to the raw data, the response is destroyed |
| Audit logging | Standard cloud event logs (CloudWatch / Datadog, SOC 2 trails) | Cryptographic hash-chaining (audit.js) where altering a past prompt, query, or output breaks chain verification |
Every figure carries its provenance
The figures compute in SQL over a read-only snapshot, so re-running reproduces the same
result hash exactly — an auditor can recompute and compare. Edit a recorded attestation
after the fact and verify() reports the precise entry that changed.
Bitemporal: as-of reads survive a restatement
A figure has two independent time axes: the fiscal period it is about, and the knowledge date it became known on. A restatement lands as a new row, never an overwrite, so you can ask for the vintage that was known on any past date, and every vintage reproduces its own hash.
As known on 2022-06-01
IBM.N · FY2021 · original vintage
Latest (restated)
IBM.N · FY2021 · newest vintage
lseg reconcile IBM.N FY2021 --as-of 2022-06-01 returns the original; drop the
flag and you get the latest. Because each is a distinct row, re-running an as-of query reproduces its
exact hash and the audit chain stays intact across the restatement, the case that quietly breaks
naive provenance systems.
Prices at their own grain
A price is a time series, not a per-period fundamental. So TR.PriceClose
lives in its own prices table, one row per quote × trading day, keyed by the
quote PermID,
and is fetched with
get_history,
not get_data. The ingest seam enforces the split both ways: it refuses to land a
pricing field as a fundamental, and a fundamental as a price.
node bin/fintel.js lseg prices IBM.N --from 2024-03-26 --to 2024-03-28.
Values are synthetic; the quote PermID is a labelled placeholder until validated via lseg-mcp.
Licensing & retention governance
The warehouse persists vendor data, which is only lawful within the terms of an LSEG agreement.
So every source is tagged once with its
usage class,
a cache
retention TTL,
and its redistribution terms, and the C1.1 control fails on an untagged source,
a missing TTL, or a stale row. These tags encode a policy, they do not grant a right.
db/lseg-licensing.md) confirms usage class, TTL,
redistribution, and entitlement against the signed agreement.
From synthetic to live in one credential
src/lseg-ingest.js) is a session interface:
FakeLsegSession
runs the whole path with no entitlement (this demo),
and RealLsegSession
fetches real fundamentals through
lseg-data. Set LSEG_APP_KEY
(an entitled LSEG Data Platform / Workspace app key), pip install lseg-data, and
fintel lseg ingest --live attests genuine LSEG data. Nothing
downstream changes — the guard, reconciliation, and audit chain are identical.
Live mode: gated behind a credential
TR.* codes, authored values, wired only to
this project's own MCP and engine. There is no live vendor connection on this page. Live mode is
gated behind an entitled LSEG credential: supply a key and a deployed engine URL below and the
same guard → reconcile → attest pipeline runs against genuine LSEG data. Without both,
this stays synthetic.
The key lives on the engine, not on this page, that is the whole point of
keeping a credential server-side. The fields below store your engine URL and key
in this browser only and gate the live path: until you provide a key, the
page stays in synthetic mode. Live fetch also needs the engine backend
deployed (fintel serve), which is pending (M7).
localStorage), nothing leaves the page until you set an engine
URL, and then only that engine is contacted. The live fetch runs on the engine (fintel serve
with LSEG_APP_KEY + lseg-data against a Workspace session). Don't paste a
production key on a shared machine.
Run it yourself
# synthetic — no LSEG entitlement needed node bin/fintel.js lseg seed node bin/fintel.js lseg fundamentals IBM.N FY2023 # attested snapshot, each concept → its TR.* field node bin/fintel.js lseg reconcile IBM.N FY2023 # gross profit = revenue − cost of revenue node bin/fintel.js lseg ingest IBM.N --period FY2024 # land data via the ingest seam (fake session) node bin/fintel.js lseg audit # verify the LSEG audit chain # real LSEG data — needs an entitlement export LSEG_APP_KEY=<your-app-key> # and: pip install lseg-data, Workspace running node bin/fintel.js lseg ingest IBM.N --period FY2023 --live
What is real, and what is synthetic
IBM.N, AAPL.O, VOD.L) and
the TR.* field codes — validated against LSEG's mapping matrix through lseg-mcp.
Synthetic: every value in the fundamentals table, authored so the accounting identities
hold exactly and labelled synthetic. For a tool about traceable figures, fabricated data labelled
as fabricated is fine; fabricated data presented as real is the exact failure this project exists
to prevent. Nothing here is investment advice or a claim about any company's actual results.
db/lseg-anchor.md).