RUAY168 / 38Making index records reproducible
Keep index symbol, time zone, date and source together in a reproducible record. Read more about Read article.
Markets have their own calendars. Do not invent a closing value for a non-trading day.
RUAY168 / EDITORIAL 33One country may have a holiday while another market is open. Applying Thailand's calendar to all markets creates false trading-day entries.

Use the calendar of the market responsible for the index, check holidays and special closings, and label no-trading days clearly.
Do not insert the previous closing value as a holiday's result without identifying it as historical data.
A public holiday in one country does not establish that every relevant securities exchange is closed. Check the calendar of the exchange responsible for the index and any special notices for the date concerned. A report covering several countries should distinguish the countries discussed from the actual market or reporting system. Building a market calendar based only on Monday through Friday can be inaccurate when holidays or exceptional session hours occur.
On a confirmed non-trading day, do not insert a closing level of zero or copy the previous day's close as though it belonged to the holiday. A calendar covering every date can use a non-trading status and display the last known close separately. Substitution could make a chart appear to show a collapse to zero or an unchanged session even though no session occurred. Recording why an observation is absent preserves the meaning of the series.
An exchange may issue notices about exceptional or shortened sessions. Use the published schedule for the specific date, not a fixed time inferred from previous checks. A system expecting a close at its usual hour could misinterpret data on an exceptional day as delayed. Retaining the market status and source-defined hours helps distinguish a schedule change from an import failure. Without confirmation, do not invent an alternative closing time.
When following international markets, the Thai-clock representation of opening or closing times may shift with timezone and local clock conventions. Preserve the market's local time and named timezone, converting to Thai time for the actual date instead of applying a fixed offset indefinitely. Conversion does not redefine the exchange's session date. Around midnight, display both the market date and localized observation time when helpful to prevent a record from being filed under the wrong day.
Test a data website with normal sessions, holidays and sample schedule revisions. When no new close exists, it should retain the latest record with its original date instead of relabeling it as today's value. If the source cannot be reached, report verification pending rather than inferring the market is closed. Distinguishing source availability from exchange status supports historical auditing. A market calendar also cannot guarantee when an unrelated number service will publish its own information.
A record of a special session should retain the notice that established its status. If that notice is later replaced, keep its date and reference so a missing observation is not mistakenly treated as an importer error.
Distinguish published market indices from third-party number activities. Read the category guide
Explore connected topics
RUAY168 / 38Keep index symbol, time zone, date and source together in a reproducible record. Read more about Read article.
RUAY168 / 39Market movements reflect uncertainty rather than guaranteeing future digits. Read more about Read article.
RUAY168 / 40Market data has distinct timestamps and units; lottery results have draw and prize categories. Keep their schemas separate. Read more about Read article.