work on engine
This commit is contained in:
parent
a1e5a21847
commit
cbe8f0282c
12 changed files with 694 additions and 16 deletions
32
apps/stock/orchestrator/examples/test-engine-import.ts
Normal file
32
apps/stock/orchestrator/examples/test-engine-import.ts
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env bun
|
||||
|
||||
// Test importing the @stock-bot/engine package
|
||||
import * as engine from '@stock-bot/engine';
|
||||
|
||||
console.log('Successfully imported @stock-bot/engine');
|
||||
console.log('Available exports:', Object.keys(engine));
|
||||
|
||||
// Test creating some basic objects if they're available
|
||||
try {
|
||||
if (engine.createBacktestEngine) {
|
||||
console.log('✓ createBacktestEngine is available');
|
||||
}
|
||||
|
||||
if (engine.createIndicator) {
|
||||
console.log('✓ createIndicator is available');
|
||||
}
|
||||
|
||||
if (engine.createRiskManager) {
|
||||
console.log('✓ createRiskManager is available');
|
||||
}
|
||||
|
||||
// List all available functions
|
||||
console.log('\nAll available functions:');
|
||||
for (const [key, value] of Object.entries(engine)) {
|
||||
if (typeof value === 'function') {
|
||||
console.log(` - ${key}()`);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error testing engine exports:', error);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue