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
|
|
@ -96,7 +96,8 @@ describe('orchestrator architecture boundaries', () => {
|
|||
const file = join(root, 'strategies/StrategyManager.ts');
|
||||
expect(imports.get(file)?.some(specifier => specifier.includes('/examples/'))).toBe(false);
|
||||
expect(readFileSync(file, 'utf8')).not.toMatch(/switch\s*\(\s*config\.name/);
|
||||
expect(imports.get(join(root, 'strategies/StrategyRegistry.ts'))).toEqual([]);
|
||||
expect([...reachable(join(root, 'strategies/StrategyRegistry.ts'))].map(file => relative(root, file)).sort())
|
||||
.toEqual(['contracts/strategy-names.ts', 'strategies/StrategyRegistry.ts']);
|
||||
});
|
||||
|
||||
it('backtest playback cannot depend on trading, data, reporting or service adapters', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue