Centralize strategy contracts and share indicator calculations
This commit is contained in:
parent
366d39001b
commit
4207bf2c1c
25 changed files with 1323 additions and 477 deletions
5
test/fixtures/native-backtest-worker.ts
vendored
5
test/fixtures/native-backtest-worker.ts
vendored
|
|
@ -11,7 +11,10 @@ function send(message: NativeWorkerMessage | { invalid: boolean }): Promise<void
|
|||
|
||||
process.once('message', async (input: unknown) => {
|
||||
const { config } = nativeWorkerRequestSchema.parse(input);
|
||||
const behavior = config.config?.fixtureBehavior;
|
||||
// Fixture controls are run labels, not unsupported production strategy parameters.
|
||||
const behavior = config.name?.startsWith('fixture:')
|
||||
? config.name.slice('fixture:'.length)
|
||||
: undefined;
|
||||
if (!behavior) {
|
||||
// The same adapter can recover and run the actual Rust engine after a failed worker.
|
||||
await import('../../apps/stock/orchestrator/src/backtest/native-worker');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue