Files
trade/env.yaml
T
Rekey b4c7636731 添加 USDT-M 合约数据支持(配置层 + 清理多余字段)
- 配置层:env.yaml 新增 binance_futures API Key 段,validators + config 同步
- 清理 TradingPair 实体:删除 kline_interval、kline_intervals、kline_synthesis_enabled
- 删除 fetchKlines 系列函数的 interval 参数,硬编码为 1m
- 更新 SQL seed 数据、example、base_rest 接口、types 接口
- 新增 AGENTS/08-boundaries.md 执行纪律
- 新增 PLAN-add-futures-data.md 方案文档
2026-06-15 23:24:21 +08:00

41 lines
1.3 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.
# ============================================================
# Trade System — 统一环境配置(YAML
# ============================================================
# 使用方式:
# data 模块通过 data/config.ts 读取此文件
# Python 模块通过 yaml.safe_load 读取此文件
#
# 修改后重启服务即可生效,无需重新构建。
# ============================================================
# --- TimescaleDB / PostgreSQL 连接 ---
db:
host: 10.0.0.7
port: 5432
name: trade
user: trader
password: fucketh
# --- Redis 连接 ---
redis:
url: redis://localhost:6379
# 是否启用 Pub/Sub 行情发布(开发时可关闭以节省资源)
publish_enabled: true
# --- 交易所 API 密钥 ---
exchange:
binance:
api_key: "ONSJKIGRpDYLn6FdV17aAKfjclZ4I2LzamflhuMpsoRQA427lLKeyJlGtg2RZ7DH"
api_secret: "5Mfv4TgvDlRzCHbtl2nJL4mVHUvMm8pyjKiRjMoosBMxrhlqMw6CuQbg2qbS2Npd"
# USDT-M 永续合约(需要单独开通合约交易权限)
binance_futures:
api_key: "YOUR_FUTURES_API_KEY"
api_secret: "YOUR_FUTURES_API_SECRET"
# --- 日志 ---
logging:
# 日志级别:trace / debug / info / warn / error / fatal
level: debug
# 运行环境:development 启用 pretty printproduction 输出 JSON
node_env: development