crypto.ai/cryptoai/config/config.example.yaml
2025-04-27 14:12:27 +08:00

49 lines
1.2 KiB
YAML

# Binance API设置
binance:
api_key: "your_binance_api_key_here"
api_secret: "your_binance_api_secret_here"
test_mode: true # 设置为false将使用实盘交易
# DeepSeek AI设置
deepseek:
api_key: "your_deepseek_api_key_here"
model: "deepseek-chat" # 使用的模型
# 加密货币设置
crypto:
base_currencies:
- "BTC"
- "ETH"
- "BNB"
- "SOL"
- "ADA"
quote_currency: "USDT"
time_interval: "4h" # 可选: 1m, 5m, 15m, 30m, 1h, 4h, 1d
# 数据设置
data:
storage_path: "./cryptoai/data"
historical_days: 30
update_interval: 60 # 数据更新间隔(分钟)
# Agent设置
agent:
analysis_interval: 120 # 分析间隔(分钟)
strategies:
- "trend_following"
- "momentum"
- "sentiment"
risk_level: "medium" # 可选: low, medium, high
# 日志设置
logging:
level: "INFO" # 可选: DEBUG, INFO, WARNING, ERROR
file_path: "./cryptoai/logs"
# 钉钉机器人设置
dingtalk:
enabled: true # 是否启用钉钉机器人
webhook_url: "https://oapi.dingtalk.com/robot/send?access_token=your_dingtalk_token_here"
secret: "your_dingtalk_secret_here" # 如果没有设置安全设置,可以为空
at_mobiles: [] # 需要@的手机号列表
at_all: false # 是否@所有人