feat(data): TimescaleDB 连续聚合逐月刷新脚本 & 基础设施改进

- 新增 build_aggregates_sql.ts:按月粒度刷新 klines 聚合视图链 (5m→1w),支持 dry-run/execute 模式

- 新增 run_exchange.sh 交易所数据拉取脚本

- DataSource 启动时输出配置概要,Binance REST 客户端添加超时配置

- 开发依赖新增 ts-node,env.yaml 更新数据库地址
This commit is contained in:
Rekey
2026-06-11 15:48:29 +08:00
parent 309b11ae30
commit 72a53cc86d
6 changed files with 445 additions and 3 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
import { DataSource } from "typeorm";
import { pgsql } from "../config";
import { pgsql, printConfigSummary } from "../config";
import * as entities from "./entities";
printConfigSummary();
export const AppDataSource = new DataSource({
type: "postgres",
host: pgsql.host,