@gabriel3615/ta_analysis
Version:
stock ta analysis
34 lines (33 loc) • 1.14 kB
JavaScript
// 新架构模块导入
import { IntegratedOrchestrator } from './integration/IntegratedOrchestrator.js';
// === 新架构快捷入口 ===
/**
* 新架构快捷入口函数
* 使用新的集成编排器执行分析
*/
export async function executeIntegratedAnalysisV2(symbol, config) {
const orchestrator = new IntegratedOrchestrator();
const result = await orchestrator.executeIntegratedAnalysis(symbol, config);
return result.tradePlan; // 返回交易计划,保持向后兼容
}
/**
* 新架构快捷入口函数(加密货币)
*/
export async function executeIntegratedCryptoAnalysisV2(symbol, config) {
const orchestrator = new IntegratedOrchestrator();
const result = await orchestrator.executeIntegratedCryptoAnalysis(symbol, config);
return result.tradePlan;
}
/**
* 批量分析多个股票
*/
export async function executeBatchAnalysis(symbols, config, parallelLimit) {
const orchestrator = new IntegratedOrchestrator();
if (config) {
orchestrator.updateConfig(config);
}
return await orchestrator.executeBatchAnalysis({
symbols,
parallelLimit,
});
}