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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user