feat(research): select and reuse frozen datasets in workbench

This commit is contained in:
Boki 2026-10-23 18:13:37 -04:00
parent 6a67ae8683
commit b106c1ca85
29 changed files with 2295 additions and 426 deletions

View file

@ -0,0 +1,21 @@
import type { HistoricalDatasetManifest } from './historical-data';
/** Metadata only. Availability here never certifies bar content or calendar coverage. */
export interface HistoricalDatasetCatalogEntry {
hash: string;
version: number | null;
createdAt: string;
manifest: HistoricalDatasetManifest | null;
status: 'available' | 'unsupported' | 'invalid';
reason: string | null;
coverage: 'unknown';
integrity: 'not-verified';
}
/** Derived from the accepted run snapshot and its atomic dataset binding. */
export interface BacktestRunDatasetSelection {
requestedHash: string | null;
pinnedHash: string | null;
source: 'auto' | 'questdb' | 'eod' | null;
state: 'requested' | 'preparing' | 'pinned' | 'unavailable' | 'unknown';
}

View file

@ -128,6 +128,7 @@ export {
HistoricalDataRequestError,
validateHistoricalDataRequest,
} from './historical-data';
export type { HistoricalDatasetCatalogEntry, BacktestRunDatasetSelection } from './dataset-catalog';
export type {
InstrumentIdentity,
HistoricalDataPolicy,