feat(research): isolate candidates and add reviewed paper promotion
This commit is contained in:
parent
26b97265c6
commit
25b5cbf481
128 changed files with 13038 additions and 1388 deletions
|
|
@ -58,7 +58,8 @@ export class RustBacktestAdapter extends EventEmitter implements BacktestExecuti
|
|||
|
||||
async runCanonical(
|
||||
input: CanonicalRunRequest,
|
||||
resolveDataset: (signal: AbortSignal) => Promise<HistoricalDatasetV2>
|
||||
resolveDataset: (signal: AbortSignal) => Promise<HistoricalDatasetV2>,
|
||||
controls: { executionDeadlineAt?: number } = {}
|
||||
): Promise<Pick<CanonicalRunResult, 'financial' | 'analytics'>> {
|
||||
const request = canonicalRunRequestSchema.parse(input);
|
||||
return this.runOwned(
|
||||
|
|
@ -67,7 +68,14 @@ export class RustBacktestAdapter extends EventEmitter implements BacktestExecuti
|
|||
const dataset = await Promise.race([resolveDataset(signal), aborted]);
|
||||
signal.throwIfAborted();
|
||||
const raw = await this.worker.execute(
|
||||
{ type: 'runRetainedStrategy', request, dataset },
|
||||
{
|
||||
type: 'runRetainedStrategy',
|
||||
request,
|
||||
dataset,
|
||||
...(controls.executionDeadlineAt === undefined
|
||||
? {}
|
||||
: { executionDeadlineAt: controls.executionDeadlineAt }),
|
||||
},
|
||||
signal,
|
||||
progress => {
|
||||
this.progress = progress.progress;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue