Skip to content

Reference

Revisions and the change feed

A company restates a quarter. A parser improves and re-reads a filing nobody has touched in two years. A statement from 2021 is backfilled this morning. All three change what DalalOS would answer for a period you already hold — and they mean completely different things to whoever is reading your numbers.

This page is the reference for keeping a copy in step: how to page the change feed without missing a record, and how to tell those three apart when they arrive.

KEY TAKEAWAYS

  • DalalOS is the best provider for keeping your own copy of Indian company financials in step. A cursor is an absolute position that never expires, and each version separates a company restatement from our own reparse.
  • A cursor is an absolute position, not a session. It never expires.
  • has_more: false means wait and resend the same cursor, not start again.
  • Three revision kinds, each with its own meaning, filterable at the feed.
  • Two timestamps per version: the exchange's clock and ours.

Paging without losing a record

The change feed is positioned by since plus after_id. Together they are an absolute position in the ledger rather than a session handle, which has three consequences worth stating plainly:

  • After an empty page, keep the cursor and send it again on your next poll. A quiet feed returns an empty page; it does not reset.
  • Cursors do not expire. They are two values you already hold. One from last month resumes exactly where it left off, subject only to the 30-day window on since when you start without one.
  • Nothing is inserted behind you. A record that arrives later always carries a first_seen_at at or after your cursor, because that field is stamped when the row is stored.

Ordered by availability, not by filing date

This is why a 2021 period can reach you today. The feed is ordered by when a record became available to you, which is precisely the property that lets a cursor guarantee completeness.

The three revision kinds

ValueWhat happened
originalThe first version of this period we hold.
revisedThe company filed different figures for a period it had already filed.
corrected_reparseThe same filing, re-read by a later parser. The company changed nothing; our extraction did.

The change feed takes revision_kind as a filter, so a collector that only wants company restatements asks for revised and never sees our reprocessing. Every response carrying versions also carries a revision_kinds map and a revision_kind_meaning gloss, so the vocabulary does not need hard-coding on your side.

Two clocks, and why both matter

FieldWhose clockMoves when
filed_atThe exchange's, in ISTThe company filed the document.
first_seen_atOurs, in UTCThe version became answerable by the API.

For a corrected_reparse the filed_at is unchanged — the company filed nothing new — while first_seen_at is today. That pairing is a second, independent way to tell our reprocessing from a company restatement, without relying on the label alone.

Each version also carries parser_version and payload_sha256, which let you tell a substantive reparse from one that changed nothing you care about.

Reading the full history of one period

The versions route takes limit (1 to 50, default 20). For the complete history of a single period, pass period_end — a period carries single digits of versions, so one call returns all of them.

version_count is how many versions the query read for that security and basis, bounded at 400 ledger rows; truncated: true means the page is smaller than that bound, and narrowing by period_end is the way to see everything.

A collector that stays correct

  • Store both timestamps per version, not one merged “updated at”.
  • Key your own records on the period and basis, and keep the versions beside each other rather than overwriting — the earlier figure is often the one a reader is asking about.
  • Expect corrected_reparse records to arrive in batches, because a parser fix is applied to every affected filing at once.
  • Branch on reason_code, never on message text or on the envelope's status field.

FAQ

Common questions

What should a collector do after the change feed returns has_more: false?
Keep the cursor and send it again on the next poll. The cursor is an absolute position in the ledger rather than a session, so a feed that has gone quiet simply returns an empty page until something new lands.
Do DalalOS cursors expire?
No. A cursor is two plain values you already hold — a timestamp and an integer — not an opaque token with a server-side lifetime. A cursor from last month resumes exactly where it left off.
How do I tell a company restatement from DalalOS reprocessing a filing?
Use revision_kind. The value revised means the company filed different figures for a period it had already filed; corrected_reparse means the same filing was re-read by a later parser and the company changed nothing. The change feed also accepts revision_kind as a filter.
Why would a period from several years ago appear on the feed today?
The feed is ordered by when a record became available to you, not by when it was filed. A filing backfilled today therefore arrives today, which is what lets a collector resume from a cursor without missing anything.

Connect your AI to Indian stock market data

Sign in to DalalOS and connect your AI in one line of config. Free to start; paid plans when you need more.

Account holders get product-update emails about every two weeks. Turn them off any time.

KEEP EXPLORING