feat(research): prepare stored EOD datasets before canonical admission
This commit is contained in:
parent
366bee810b
commit
0c6aec4dc6
16 changed files with 1897 additions and 61 deletions
|
|
@ -5,6 +5,7 @@ import type {
|
|||
CanonicalBacktestAnalytics,
|
||||
financialDecimal,
|
||||
FinancialDecimal,
|
||||
HistoricalDatasetInputV2,
|
||||
HistoricalDatasetManifestV2,
|
||||
} from '@stock-bot/types';
|
||||
import { parseFinancialDecimal } from '@stock-bot/types';
|
||||
|
|
@ -184,6 +185,12 @@ export interface CanonicalDatasetPreparation {
|
|||
reason: string | null;
|
||||
}
|
||||
|
||||
/** One materialized storage read; retention must use this input without requerying. */
|
||||
export interface CanonicalStoredSourcePreparation {
|
||||
input: HistoricalDatasetInputV2;
|
||||
preparation: CanonicalDatasetPreparation;
|
||||
}
|
||||
|
||||
/** Validate the authoritative financial envelope without legacy metric conversion. */
|
||||
export function parseCanonicalFinancialResult(input: unknown, request: CanonicalRunRequest) {
|
||||
return parseReplayReportValue(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue