Point in time

Read what Gloom knew at a past moment, on every history route.

bash
curl -G "https://api.gloom.sh/v1/earnings/moves" \
  -d symbols=NVDA \
  -d asOf=2026-03-01 \
  -H "Authorization: Bearer $GLOOM_DATASETS_KEY"
json
"meta": {
  "asOf": "2026-03-01",
  "pointInTime": {
    "cutoff": "2026-03-01T23:59:59.999Z",
    "basis": "observedAt",
    "versions": "latest"
  },
  "notices": [{ "code": "point_in_time", "message": "Gloom keeps each report's latest figures: …" }]
}
  • asOf takes a date, read through the end of that UTC day, or an RFC 3339 time with a zone: 2026-03-01T14:30:00Z. A daily figure counts once its day is over. A price bar counts half an hour after its session closes where the listing trades, once the closing auction has printed the close: AAPL's bar of 7 June 2024 from 20:30 UTC that day, and Toyota's on the Tokyo exchange from 06:30 UTC, half an hour after that day's 15:00 close. Since the exchange's longer hours of 5 November 2024, Toyota's counts from 06:55 UTC. A fund's, whose price is published hours after the close, and one with no fixed hours, such as a coin's, count once the UTC day is over.
  • Every history route takes it, on every plan, at its usual price. So do /v1/fundamentals/statements, /v1/kpis, /v1/guidance, the supply chain graph, /v1/filings and /v1/insider-trades.
  • Each row carries publishedAt, when its source published it, and observedAt, when Gloom first stored it. Either is null where it is not known.
  • meta.pointInTime says what the answer is. meta.asOf echoes the moment you sent.

What a route guarantees

For /v1/macro/series/{seriesId}, each FRED observation has availableOn, the day the shown value became available: its revision day, otherwise its first-release day, or null when unknown. publishedAt uses that same shown-version date. For example, an August figure first released on September 17 and revised to 1,403 on October 20 has availableOn: "2026-10-20". The raw series' releasedOn still means the first release, not availability of a later revision. Backtests must use availableOn (or the API's publishedAt) rather than first release to avoid look-ahead.

Routes differ: some give every version of a row, some only the latest. Each route says which in meta.pointInTime, in its asOf parameter's description and in x-point-in-time in the OpenAPI document.

  • basis: observedAt keeps the rows Gloom had by then. publishedAt keeps the rows their source had published by then, where the route has no time for when Gloom had each.
  • versions: kept gives each row as it was then. unchanged leaves out a row changed since. latest gives a row's values now, which a later revision may have changed.
  • Unless the answer is observedAt and kept, a point_in_time notice says, in a sentence, what the route cannot give.
  • today, in x-point-in-time, lists the fields Gloom keeps only as they stand today, such as the open roles beside /hiring's daily counts. With asOf they are null, never a later value.
  • /v1/fundamentals/statements gives a US company's periods as its filings stood by then, each line the version filed by the cutoff, back to its first XBRL filings, a page at a time. unavailableFields names the lines a period has today that no filing by then reports: a line not filed yet, or another source's line, which keeps no filed versions to date it, even with asOf of today. Read without asOf for every line.
  • A US symbol is the company that held it at the cutoff, on /v1/market/bars, /v1/fundamentals/statements, /v1/filings and /v1/insider-trades. DOC read at 2021-01-04 is Physicians Realty Trust, which Healthpeak took over in 2024 before taking its symbol, and FB is Meta Platforms. Another company's rows are never served under a symbol: one whose company then Gloom holds no rows of is empty, with a symbol_reused notice. So is one Gloom has no record of a company under then, such as LCID before Churchill Capital Corp IV renamed itself into it in 2021, and its notice names the symbol that company had. One a new listing took after its company left, with no record of the day, such as FB read at 2023-06-01, has no statements or filings, and its bars are the company's up to its rename and the listing's after.
  • /v1/filings reads a filer's whole history, a busy one's older filings too. A window before the filer's first filing is empty, free, with a before_history notice naming that filing, and so is /v1/market/bars before a listing first traded, naming that day.
  • /v1/stories takes no asOf: since and until compare lastSeenAt, when Gloom last saw each story, so a story seen again after until is left out. meta.historyStart says when the stories held start, and a page with none is free.
  • The news list at /news gives stories as they are now and takes none of these: read with a Datasets key, it refuses symbols, ticker, asOf and the like with a 400 that points to /v1/stories.

From now on Gloom keeps the earlier versions behind routes that give only the latest, so they can move to kept as that history grows. A change of what asOf means on a route is announced in the changelog first.