crypto.ai/cryptoai/config/config.example.yaml
2025-04-28 14:53:05 +08:00

90 lines
2.2 KiB
YAML
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.

# Binance API设置
binance:
api_key: "your_binance_api_key_here"
api_secret: "your_binance_api_secret_here"
test_mode: true # 设置为false将使用实盘交易
# OKX API设置
okx:
api_key: "your_okx_api_key"
api_secret: "your_okx_api_secret"
passphrase: "your_okx_passphrase"
test_mode: false # 设置为true使用测试网络
# DeepSeek AI设置
deepseek:
api_key: "your_deepseek_api_key"
model: "deepseek-chat" # 使用的模型
# AllTick API设置用于获取黄金数据
alltick:
api_key: "your_alltick_api_key"
symbols:
- "XAUUSD" # 黄金/美元
# - "XAGUSD" # 白银/美元
# 加密货币设置
crypto:
base_currencies:
- "BTC"
- "ETH"
- "BNB"
- "SOL"
- "ARB"
quote_currency: "USDT"
time_interval: "1d" # 支持: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w, 1M
min_data_points: 100 # 最小数据点数量不应小于30
# 黄金市场分析配置
gold:
# 黄金交易对
symbols:
- "GOLD"
- "SILVER"
# 历史数据天数
historical_days: 180
# 时间间隔
time_interval: "1d"
# 分析间隔(分钟)
analysis_interval: 360
# 是否启用宏观经济因素分析
enable_macro_analysis: true
# 是否保存图表
save_charts: true
# 数据设置
data:
storage_path: "./cryptoai/data"
historical_days: 60 # 历史数据获取天数
update_interval: 60 # 数据更新间隔(分钟)
# Agent设置
agent:
analysis_interval: 120 # 分析间隔(分钟)
strategies:
- "trend_following"
- "mean_reversion"
- "breakout"
- "rsi_strategy"
risk_level: "medium" # 风险等级: low, medium, high
# 日志设置
logging:
level: "INFO" # 可选: DEBUG, INFO, WARNING, ERROR
file_path: "./cryptoai/logs"
# 钉钉机器人设置
dingtalk:
enabled: false # 是否启用钉钉通知
webhook_url: "https://oapi.dingtalk.com/robot/send?access_token=your_access_token"
secret: "your_secret" # 如果使用了加签安全设置,请填写此项
at_mobiles: [] # 需要@的手机号列表
at_all: false # 是否@所有人
# 数据库配置
database:
host: "gz-cynosdbmysql-grp-2j1cnopr.sql.tencentcdb.com"
port: 27469
user: "root"
password: "Aa#223388"
db_name: "cryptoai"