Files
Rekey c3fab090be docs: 跨语言通信方案决策 — 采用 HTTP 通知
- ADR: cross-language-communication.md — 9 种方案分析 → HTTP (E2) 决策记录
- 实现计划: cross-language-http-plan.md — TS POST + Python aiohttp server
- 备选概要: cross-language-pgnotify-plan.md — PG LISTEN/NOTIFY 方案
- env.yaml: 新增 data.notify_url + engine.host/port 配置段
2026-06-19 17:26:46 +08:00

49 lines
1.4 KiB
YAML
Raw Permalink 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
data:
notify_url:
- http://localhost:8100/aggregate/refreshed
engine:
host: localhost
port: 8100
# --- 交易所 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