TokSeq documentation/Data

Data acquisition

What is collected, at what granularity, how much of it there is, and the quality controls that decide whether a row is allowed to exist at all.

Everything the platform claims rests on data it collected itself. No third-party dumps are ever merged into the source of truth. The provenance rule is clean-room: every row originates from the platform's own poll of a documented public API, performed by the platform's own code, with the response timestamped on arrival.

What is collected

Forty-five distinct streams are running. They fall into seven families.

Two barrier-ladder prediction-market sources are also collected, as an implied distribution of market expectations rather than as a price series.

Granularity

The microstructure layer samples once per second, offset from the second boundary, and aggregates into one, five, fifteen and sixty-second tiers. The trade tape and liquidation events are stored raw, one row per event. Book state is stored as a forty-bucket depth heatmap around the mid, with a per-asset band width, in two time tiers.

The polling layer runs at cadences declared per source: ninety seconds for the fast market cycle, roughly fifteen minutes for the full timeframe set, five minutes for volatility and positioning snapshots, ten minutes for news, an hour for the slower on-chain and supply series.

One rule is worth stating because it is unusual: a second-level row is written only if that second was actually observed. A second during which the socket said nothing produces no row at all, rather than a row of zeros. Gaps are never interpolated, anywhere in the platform, at any layer.

What is deliberately not collected

Volume and depth

MeasurementValue
Storage occupied60.3 GB of 154 GB, growth about 228 MB per day
Microstructure store12.5 GB, growth about 173 MB per day
Per-second row completeness over 24 hours0.9937 / 0.9938 / 0.9933 for the three primary assets
Book quality share over 24 hours1.0, with zero desync events and zero resync timeouts
Deepest price historyHourly bars from March 2020 for the first asset, 55 063 bars
Longest supply seriesFrom November 2017, 3 184 daily partitions
Option chain snapshot682 to 702 rows per poll
News corpus9 683 headlines, about 81 per day

Coverage is asymmetric by design. Second-level microstructure is collected for three primary assets, because a socket per instrument at a one-second cadence is the most expensive stream in the system and the research it feeds needs depth rather than breadth. Price history, derivatives context, macro and on-chain series cover a wider set. That base is now being extended: the instrument screen is being widened after a pre-registered transfer probe, and a second market with its own option series is being added for the volatility program. Storage was sized for that expansion in advance – about ten additional gigabytes a year against 86 free.

Storage is partitioned by day in a columnar format with compression, with per-stream retention declared in configuration: two years for order-flow aggregates and liquidations, four hundred days for the raw trade tape with an emergency reduction under disk pressure, and keep-all for news and snapshot series.

Quality control

Data quality is not a review step, it is a set of refusals built into the write path.

Known limitations

The platform documents its own data defects publicly to itself rather than fixing history retroactively, because a retroactive fix is indistinguishable from a fabrication:

Each of these is recorded with its date, its magnitude and its effect on downstream use.