Point in time
Read what Gloom knew at a past moment, on every history route.
curl -G "https://api.gloom.sh/v1/earnings/moves" \
-d symbols=NVDA \
-d asOf=2026-03-01 \
-H "Authorization: Bearer $GLOOM_DATASETS_KEY""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: …" }]
}asOftakes 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/filingsand/v1/insider-trades. - Each row carries
publishedAt, when its source published it, andobservedAt, when Gloom first stored it. Either is null where it is not known. meta.pointInTimesays what the answer is.meta.asOfechoes 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:observedAtkeeps the rows Gloom had by then.publishedAtkeeps the rows their source had published by then, where the route has no time for when Gloom had each.versions:keptgives each row as it was then.unchangedleaves out a row changed since.latestgives a row's values now, which a later revision may have changed.- Unless the answer is
observedAtandkept, apoint_in_timenotice says, in a sentence, what the route cannot give. today, inx-point-in-time, lists the fields Gloom keeps only as they stand today, such as the open roles beside/hiring's daily counts. WithasOfthey arenull, never a later value./v1/fundamentals/statementsgives 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.unavailableFieldsnames 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 withasOfof today. Read withoutasOffor every line.- A US symbol is the company that held it at the cutoff, on
/v1/market/bars,/v1/fundamentals/statements,/v1/filingsand/v1/insider-trades.DOCread at 2021-01-04 is Physicians Realty Trust, which Healthpeak took over in 2024 before taking its symbol, andFBis Meta Platforms. Another company's rows are never served under a symbol: one whose company then Gloom holds no rows of isempty, with asymbol_reusednotice. So is one Gloom has no record of a company under then, such asLCIDbefore 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 asFBread 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/filingsreads a filer's whole history, a busy one's older filings too. A window before the filer's first filing isempty, free, with abefore_historynotice naming that filing, and so is/v1/market/barsbefore a listing first traded, naming that day./v1/storiestakes noasOf:sinceanduntilcomparelastSeenAt, when Gloom last saw each story, so a story seen again afteruntilis left out.meta.historyStartsays when the stories held start, and a page with none is free.- The news list at
/newsgives stories as they are now and takes none of these: read with a Datasets key, it refusessymbols,ticker,asOfand the like with a400that 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.