#Accounting
Articles about Accounting — exploring patterns, best practices, and real-world implementations in production systems.
9 posts tagged with accounting. ← All posts
Every movement of money touches at least two accounts, and the entries always sum to zero. That one invariant is the backbone of a correct financial system.
Every transaction is balanced postings that sum to zero — enforce it at write time. The ledger is append-only, and booking, value, and settlement time are three different clocks you must not conflate.
Why tax lots, not positions, are the real unit of a brokerage ledger — and how to make disposal deterministic.
Tracking tax lots across buys/sells for securities and crypto, FIFO/LIFO/specific-identification, wash sales, and realized/unrealized gain.
Why fintechs keep a transaction-grain subledger separate from the accounting general ledger, and how the posting, aggregation, and tie-out actually work.
Why fintechs keep a high-volume subledger separate from the GL, posting rules, summarization/aggregation, and period-close handoff.
How to turn contracts into performance obligations, recognition schedules, and ledger journals — and why billing is never the same event as revenue.
Teaches how to build a rev-rec engine: performance obligations, deferred-vs-recognized schedules, ratable recognition over time, and how billing events differ from recognition events in the ledger.
Designing an account hierarchy, dimensions, and posting rules that turn product events into balanced journal entries.
Teaches how to design a chart of accounts and sub-ledger-to-GL posting model: account hierarchy, dimensions/segments, contra accounts, and how product events map to balanced journal entries.
How to keep books in more than one currency — transaction-date versus settlement-date rates, unrealized and realized FX gain/loss, and the period-end revaluation run that keeps the balance sheet honest.
Teaches how to keep books in multiple currencies with a functional/reporting currency: transaction-date vs settlement-date rates, unrealized/realized FX gain-loss postings, and period-end revaluation runs.
Turning ledger cutoff, accruals, trial-balance assembly, and out-of-balance detection into a controlled, repeatable pipeline instead of a month-end fire drill.
Teaches how to automate the financial close: ledger cutoff/freeze, accrual and reversing entries, trial-balance assembly, out-of-balance detection, and soft-close vs hard-close controls.
How a fund turns positions, prices, cash, and accruals into one defensible number every day — and the controls that keep it honest.
How a fund's NAV is struck daily: position keeping, pricing/valuation, accruals, expense amortization, and the striking/publishing pipeline with tolerance checks.
5K+ loans per month. Three credit bureaus. Multiple payment gateways. The thing that has to be right is the ledger. Notes on what invariants the database enforces vs what the application enforces.
All posts on this site are written by Pratik Dhanave, an Agentic AI Architect with 7+ years building production distributed systems, multi-agent AI platforms, and cloud-native infrastructure. About the author → Each article includes working code, architecture diagrams, and references to the specific frameworks and standards discussed. Browse all posts or explore related topics using the tag cloud above.