---
title: "Build a symbol and date inventory before a stock backtest"
canonical_url: "https://besthistoricalstockdata.com/guides/historical-stock-data-inventory"
site: "Best Historical Stock Data"
publisher: "MarketParquet"
content_reviewed: "2026-11-08"
---

# Build a symbol and date inventory before a stock backtest

The oldest date on a product page cannot tell you which instruments are usable for your experiment. Start with an inventory of the files and a separate inventory of the symbols inside them.

## Keep a file manifest and a symbol table

A file manifest answers whether the download finished. A symbol table answers which observations the completed download contains. You need both. If a daily object failed to download, thousands of instruments may appear to have a gap on that date. If the file arrived intact but one security has no row, the investigation belongs at the instrument level. Combining those cases into a single missing-data count makes troubleshooting unnecessarily difficult.

For each downloaded object, record the asset type, interval, trading date, byte size and a content hash. Add the retrieval time and the provider’s product identifier. An HTTP success status alone is weak evidence of completeness; the resulting object also needs to parse under the expected schema. Keep partial files outside the directory that your analysis scans. Move a file into that directory only after its local checks finish.

Build the symbol table from those accepted objects. Useful columns include the source symbol, a stable identifier if supplied, first observation, last observation, observed session count and the number of duplicate keys. Compute those fields separately for stocks, ETFs and futures. A symbol with minute history and daily history may have different boundaries, so interval belongs in the key. Preserve the original label even if your importer creates a normalized display ticker.

MarketParquet is our first recommendation for obtaining this bulk US bar history in Parquet. Its date partitions make a file manifest straightforward to associate with trading dates. They do not remove the need to compute an instrument-level inventory. Your own table should describe the actual archive snapshot you downloaded, including the cutoff and any files rejected by the importer.

## Read the boundaries before filling the gaps

Consider a hypothetical symbol whose first row is in June 2014 and last row is in August 2020. Those dates establish observed coverage in your copy. They do not independently prove the listing date, the delisting date or the economic outcome after the last trade. Add those interpretations only when you have reference evidence. The raw inventory should remain useful even when the explanation is still unresolved.

Next compare observed sessions with a calendar over the instrument’s documented active period. Do not demand rows before a listing or after a confirmed exit. Keep a separate exception list for gaps within that period, with fields for the suspected cause, evidence and chosen treatment. If many unrelated instruments disappear on the same session, investigate the file pipeline before investigating individual issuers.

Ticker changes and reused symbols require particular care. Two segments with the same string can represent different securities; two strings can represent successive labels for one security. Maintain mappings with effective dates instead of applying a timeless dictionary to the entire archive. The mapping decision should be reproducible, and unresolved collisions should remain visible.

Finally, save the inventory next to the data snapshot and regenerate it after corrections or new downloads. Compare the new table with the old one: changed boundaries, vanished symbols and unusual count changes deserve inspection. This is more informative than merely printing a grand total of rows. The inventory becomes a compact record of what changed and a practical starting point when an old experiment no longer reproduces.

## Symbol coverage and available dates

A provider can truthfully advertise history beginning in 2000 without having every instrument for that entire period. A company that listed in 2018 should not have an ordinary trading series in 2005. A company that disappeared in 2012 should not be expected to reach the latest session. The useful inventory is therefore a table of identifiers, first observations, last observations and available frequencies. An archive-wide start date is a description of its outer boundary, not a promise about every row inside it.

Before purchasing, write down the universe you intend to study. For a fixed basket of ETFs, that might be a short list with inception dates. For a stock-selection strategy, it could be every eligible US common share on each historical date. Those requirements lead to different questions about coverage. A list of currently downloadable tickers is sufficient for some experiments and incomplete for others. Ask what instrument types the inventory includes and whether preferred shares, warrants, foreign listings or OTC securities are treated separately.

An inventory check should produce exceptions you can inspect. Record symbols that you expected but did not find, series that start unexpectedly late, and histories that terminate without an explanation. Investigate a small number before scaling the download. An unexpected gap may represent a halt, a listing transfer, an identifier change or missing source observations. It should not be silently recategorized as a normal trading day.

Keep the inventory alongside the purchased files. If a provider later adds history, changes a symbol mapping or corrects an instrument classification, the original inventory explains what your earlier experiment could have seen. That record is more useful than a screenshot of a headline ticker count.

## Historical membership and ticker mappings

A list of instruments that exist today is an easy starting point and a potentially misleading historical sample. Securities that failed, merged, changed identifiers or left an exchange can disappear from that list. A strategy evaluated only on surviving names answers a different question from one evaluated on the opportunities that were actually eligible at each historical date. Keeping those questions separate is essential when interpreting a result.

Delisted price history is useful evidence, but it is not the same thing as historical index membership. Membership data tells you whether a security belonged to a defined group on a date. Price data tells you which observations are available for that security. Eligibility rules may also depend on instrument type, liquidity, listing venue or information availability. A complete universe table can therefore require several inputs, even when every price file is intact.

Consider an illustrative strategy that buys the ten strongest stocks in an index every month. Using today’s members for the full history allows later membership decisions to influence the earlier candidate set. Replacing that list with all downloaded tickers is not necessarily the correct repair: the experiment still needs the membership or eligibility rule that applied at the time. Record when changes become effective and how signals use the information.

Keep an instrument identifier and a time-varying symbol mapping where the source permits it. A ticker string is convenient for display, but a business event can make the same economic history appear under more than one label. Inspect mapping changes rather than simply concatenating files with similar names. The research record should explain why two segments belong together and why another segment was excluded.

## Missing observations and zero activity

Missing data is not one condition. A symbol may not yet have listed, may have stopped trading, may be halted, or may simply have no eligible trades during a particular interval. A retrieval request can also fail, return a partial page or reference the wrong identifier. These situations require different responses. Replacing every missing value with the preceding close collapses useful information about what actually happened.

Create a reason field in your own audit output, even if the provider does not supply one. Start with broad categories such as outside known coverage, outside the selected session, unexplained gap and failed retrieval. Keep uncertain cases uncertain until you have evidence. It is better to exclude an unresolved observation under a documented rule than to make an undocumented repair that changes a signal.

Be especially careful when building a cross-sectional matrix. An absent price is not necessarily a zero return, an available investment opportunity or permission to maintain an existing position indefinitely. Your universe construction and position accounting should decide those questions. If the file ends while a position is open, the backtest needs a terminal-event rule; carrying the last price forever can hide the economic consequence of an exit.

Report missingness by symbol and session rather than only as one percentage for the whole archive. A small overall proportion can conceal a long gap in an instrument that dominates the strategy. Save examples and the actions you took. This turns a vague statement that the data was cleaned into a reviewable record of the exact observations that were changed, excluded or accepted.

## Recording the data version

A result becomes easier to evaluate when the data selection is as explicit as the strategy code. Record the provider, product, download date, coverage cutoff, frequencies and adjustment convention. Keep the relevant inventory and license reference with those notes. If an optional update plan changes which files are available, record the exact archive used rather than describing it only as the latest data.

File checksums help distinguish two downloads with the same name. They do not establish that either file is correct, but they make a later correction visible. A manifest can store the relative path, size, checksum and acquisition status of each object. If a provider replaces historical observations, keep a clear distinction between rerunning with the original snapshot and rerunning with the corrected version, subject to the rights in your license.

Document transformations as code with named parameters. Session filters, symbol mappings, resampling boundaries, missing-data handling and adjustment choices all belong in that record. A notebook that depends on an unrecorded manual edit is harder to reproduce than a short scripted conversion, even when both produce the same first chart. Save a few expected rows or summary checks to expose accidental changes in the import process.

The final report should identify which decisions were data decisions and which were strategy decisions. Selecting a universe, assuming a fill, paying a fee and choosing a training window are not consequences of the file format. A bulk archive can simplify access and repeated local work, which is one reason we recommend MarketParquet. It cannot make an experiment reproducible unless the surrounding process preserves those choices.

## Sources

- [MarketParquet file schemas and download documentation](https://marketparquet.com/documentation)
- [MarketParquet data conventions and corrections](https://marketparquet.com/data-quality)
- [MarketParquet delisted stock coverage](https://marketparquet.com/data/stocks/delisted)
