feat(research): add strategy catalog and versioned backtest setup
This commit is contained in:
parent
8cca0ee588
commit
d929db707a
44 changed files with 4198 additions and 209 deletions
|
|
@ -135,6 +135,13 @@ export type {
|
|||
StrategyParameterSchema,
|
||||
StrategyVersionPackage,
|
||||
} from './strategy-version';
|
||||
export type {
|
||||
StrategyPackageMetadata,
|
||||
StrategyRecord,
|
||||
StrategyVersionSummary,
|
||||
StrategyReviewEvent,
|
||||
ParameterValidationResult,
|
||||
} from './strategy-catalog';
|
||||
export type {
|
||||
InstrumentIdentity,
|
||||
HistoricalDataPolicy,
|
||||
|
|
|
|||
45
libs/core/types/src/strategy-catalog.ts
Normal file
45
libs/core/types/src/strategy-catalog.ts
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
import type { StrategyParameterValue, StrategyVersionPackage } from './strategy-version';
|
||||
|
||||
export type StrategyPackageMetadata = Omit<
|
||||
StrategyVersionPackage,
|
||||
'artifact' | 'dependencyLock'
|
||||
> & {
|
||||
artifact: Omit<StrategyVersionPackage['artifact'], 'content'>;
|
||||
dependencyLock: Omit<StrategyVersionPackage['dependencyLock'], 'content'>;
|
||||
};
|
||||
export interface StrategyRecord {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
ownerPrincipal: 'operator' | 'service';
|
||||
updatedBy: 'operator' | 'service';
|
||||
archived: boolean;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
export interface StrategyVersionSummary {
|
||||
id: string;
|
||||
strategyId: string;
|
||||
ordinal: number;
|
||||
parentVersionId: string | null;
|
||||
createdBy: 'operator' | 'service';
|
||||
origin: 'candidate' | 'builtin';
|
||||
createdAt: string;
|
||||
package: StrategyPackageMetadata;
|
||||
reviewStatus: 'pending' | 'approved' | 'revoked';
|
||||
runnable: false;
|
||||
reason: string;
|
||||
}
|
||||
export interface StrategyReviewEvent {
|
||||
id: string;
|
||||
ordinal: number;
|
||||
decision: 'approve' | 'revoke';
|
||||
actor: 'operator';
|
||||
reason: string;
|
||||
createdAt: string;
|
||||
}
|
||||
export interface ParameterValidationResult {
|
||||
parameters: Record<string, StrategyParameterValue>;
|
||||
runnable: false;
|
||||
reason: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue