A desk marks its book, someone else re-adds it, and the two totals disagree by a few units. Paste your positions with the marks you are using. The page gives you market value and unrealised P&L for each position and for the book, shows which marks are older than the window you declared, and keeps each fair-value level exactly as you declared it.
Trading BookExact Integer ArithmeticDeclared MarksNot AdviceDeterministicZero PIIClient-side only
What this is not
Marks, timestamps, source labels and levels are declared by you and asserted. This page never fetches or checks them. It recomputes arithmetic over the inputs you declare and does nothing else. Out of scope: fair-value measurement, valuation-model choice, level classification, fund NAV, P&L attribution, any financial-reporting disclosure under IFRS 13 or another standard, and advice. A declared L1 is your claim, and the page never verifies it.
🔒 All inputs are processed locally in your browser. No data is transmitted, stored or logged. Do not enter real personal data. Use synthetic figures and pseudonymous position ids only.
Synthetic data: the examples below are invented. Replace them with your own declared marks before you rely on any figure.
Reading the results
Quantity is a signed whole number in units of ten to the minus quantity scale; a negative quantity is a short. Cost basis is the total cost in book minor units with the same sign: positive for a long, negative proceeds for a short. A mark is a price per one whole unit in book minor units, scaled by its price scale. Market value is quantity times price, and unrealised P&L is market value minus cost basis, so a short that was sold for 1,100,000 and now stands at minus 1,000,000 shows a gain of 100,000. If quantity times price is not a whole number of minor units, the page refuses and names the position. It does not round, because no rounding rule has been declared. A mark whose age is greater than your staleness window is flagged stale and stays in every total; a mark whose age equals the window is not stale. The staleness window is your own policy: neither standard sets one.
The fair-value level is carried exactly as you declare it (L1, L2, L3 or not_declared) and is never inferred from a source label, a price or an age. The hierarchy it refers to is set out in IFRS 13 paragraphs 72 and 73, with Level 1 in paragraphs 76 and 77, Level 2 in 81 and 82 and Level 3 in 86 and 87; paragraph 93(b) is why a level travels with each measurement. IFRS 9 paragraph 5.7.1 is the recognition rule for gains and losses on instruments measured at fair value, with its exceptions. Paragraphs 9 and 24 describe fair value as an exit price. Citations are to paragraph numbers in the EU-endorsed IFRS text; the IASB's current consolidated text was not consulted, and this page implements none of those paragraphs. This is a calculation check and gives no accounting, legal or investment advice.
Book
Positions
Result
Per position (minor units)
By declared level
Stale marks
Execution hash & §4 artifact
SHA-256 execution hash (JCS canonical, RFC 8785):
What it does not prove
Mark accuracy, level correctness and source independence are not proven; neither is the completeness of the position list or the correctness of the cost basis (there is no lot or FIFO logic). FX is not handled, accruals are not included, and the level 3 sensitivity disclosure a reporting entity may owe is not produced. A mark may carry the sha256 of an upstream receipt; the page checks its shape only and never resolves it.
Copy this paragraph into Claude, OpenClaw, or any MCP-aware agent to run this exact tool, with this sample, and verify the artifact.
Run the AINumbers MCP tool `recompute_book_mtm`. Task: Recompute a trading book's market value and unrealised P&L in exact integer minor units from marks you declare.
Call it with arguments: {"policy_parameters":{"book_id":"SYNTH-BOOK-1","book_currency":"USD","minor_unit_exponent":2,"as_of":"2026-06-30T16:00:00Z","staleness_window_seconds":86400,"positions":[{"position_id":"P-A","quantity":100,"quantity_scale":0,"cost_basis_minor":1400000,"mark":{"price_minor":15025,"price_scale":0,"currency":"USD","as_of":"2026-06-30T15:30:00Z","source_label":"desk-feed-A","level":"L1","source_artifact_hash":"sha256:abababababababababababababababababababababababababababababababab"},"instrument_ref":"SYNTH-EQ-A"},{"position_id":"P-B","quantity":50,"quantity_scale":0,"cost_basis_minor":520000,"mark":{"price_minor":9990,"price_scale":0,"currency":"USD","as_of":"2026-06-30T15:30:00Z","source_label":"desk-feed-A","level":"L2"}},{"position_id":"P-C","quantity":10,"quantity_scale":0,"cost_basis_minor":1000000,"mark":{"price_minor":125000,"price_scale":0,"currency":"USD","as_of":"2026-06-30T15:30:00Z","source_label":"desk-feed-A","level":"L3"}}]}}
Verify before trusting: call `verify_execution_hash` on mcp.ainumbers.co (https://mcp.ainumbers.co/mcp) with the parameter `claimed_hash` set to the returned `execution_hash`, passing the full artifact the run returned (the object containing `policy_parameters` + `output_payload` + `execution_hash`; equivalently `policy_parameters` + `output_payload` with `claimed_hash`), not the bare hash string.
Return the ledger link https://ledger.ainumbers.co/ so a human can re-verify without contacting us.
PII rule: All inputs are processed locally in your browser. No data is transmitted. Do not enter real personal data — use synthetic or anonymised inputs only.
Over MCP, the run happens on the AINumbers worker. No AINumbers server stores your inputs.
Open the tool with the sample prefilled: https://ainumbers.co/chaingraph/art-862-recompute-book-mtm.html#p=v1.H4sIAAAAAAAA_wGgA1_8eyJib29rX2lkIjoiU1lOVEgtQk9PSy0xIiwiYm9va19jdXJyZW5jeSI6IlVTRCIsIm1pbm9yX3VuaXRfZXhwb25lbnQiOjIsImFzX29mIjoiMjAyNi0wNi0zMFQxNjowMDowMFoiLCJzdGFsZW5lc3Nfd2luZG93X3NlY29uZHMiOjg2NDAwLCJwb3NpdGlvbnMiOlt7InBvc2l0aW9uX2lkIjoiUC1BIiwicXVhbnRpdHkiOjEwMCwicXVhbnRpdHlfc2NhbGUiOjAsImNvc3RfYmFzaXNfbWlub3IiOjE0MDAwMDAsIm1hcmsiOnsicHJpY2VfbWlub3IiOjE1MDI1LCJwcmljZV9zY2FsZSI6MCwiY3VycmVuY3kiOiJVU0QiLCJhc19vZiI6IjIwMjYtMDYtMzBUMTU6MzA6MDBaIiwic291cmNlX2xhYmVsIjoiZGVzay1mZWVkLUEiLCJsZXZlbCI6IkwxIiwic291cmNlX2FydGlmYWN0X2hhc2giOiJzaGEyNTY6YWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYiJ9LCJpbnN0cnVtZW50X3JlZiI6IlNZTlRILUVRLUEifSx7InBvc2l0aW9uX2lkIjoiUC1CIiwicXVhbnRpdHkiOjUwLCJxdWFudGl0eV9zY2FsZSI6MCwiY29zdF9iYXNpc19taW5vciI6NTIwMDAwLCJtYXJrIjp7InByaWNlX21pbm9yIjo5OTkwLCJwcmljZV9zY2FsZSI6MCwiY3VycmVuY3kiOiJVU0QiLCJhc19vZiI6IjIwMjYtMDYtMzBUMTU6MzA6MDBaIiwic291cmNlX2xhYmVsIjoiZGVzay1mZWVkLUEiLCJsZXZlbCI6IkwyIn19LHsicG9zaXRpb25faWQiOiJQLUMiLCJxdWFudGl0eSI6MTAsInF1YW50aXR5X3NjYWxlIjowLCJjb3N0X2Jhc2lzX21pbm9yIjoxMDAwMDAwLCJtYXJrIjp7InByaWNlX21pbm9yIjoxMjUwMDAsInByaWNlX3NjYWxlIjowLCJjdXJyZW5jeSI6IlVTRCIsImFzX29mIjoiMjAyNi0wNi0zMFQxNTozMDowMFoiLCJzb3VyY2VfbGFiZWwiOiJkZXNrLWZlZWQtQSIsImxldmVsIjoiTDMifX1dfY6CZJugAwAA