tradusai/run_signal_smart.sh
2025-12-02 22:54:03 +08:00

16 lines
542 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 运行交易信号生成器(智能门控 - 只在高质量信号时调用AI节省成本
# 设置 Deepseek API
export OPENAI_API_KEY='sk-9f6b56f08796435d988cf202e37f6ee3'
export OPENAI_BASE_URL='https://api.deepseek.com'
export LLM_GATE_ENABLED=true # 启用智能门控节省95%成本
# 运行信号生成
docker compose exec ingestion bash -c "
export OPENAI_API_KEY='$OPENAI_API_KEY'
export OPENAI_BASE_URL='$OPENAI_BASE_URL'
export LLM_GATE_ENABLED=$LLM_GATE_ENABLED
python scripts/generate_trading_signal.py
"