Refactor execution boundaries and add durable strategy recovery
This commit is contained in:
parent
d6b09eb635
commit
694c48bbdb
36 changed files with 3077 additions and 491 deletions
|
|
@ -216,11 +216,8 @@ describe('one simulation execution gateway', () => {
|
|||
{} as ModeManager,
|
||||
execution
|
||||
);
|
||||
await strategy.initialize();
|
||||
await strategy.start();
|
||||
// Inject only the strategy fixture; market delivery, gateway, accounting, and native projection are real.
|
||||
Object.defineProperty(manager, 'strategies', { value: new Map([['strategy', strategy]]) });
|
||||
Object.defineProperty(manager, 'activeStrategies', { value: new Set(['strategy']) });
|
||||
await manager.attachStrategy(strategy);
|
||||
cleanup.push(() => manager.shutdown());
|
||||
const first = quote('1');
|
||||
const second = quote('2', 100, 100, start + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue