0a6198b0a2
- exchanges/index.ts 拆分为 rest-registry + ws-manager,降级为 re-export hub - 移除 fetchMarkets() 及 MarketInfo 类型(交易对人工筛选,无需自动注册) - 移除 ConnectionState 死代码 - aggregate.ts: console.log → logger.debug 统一日志 - 删除 data/test.ts(SDK 临时调试脚本) - ARCHITECTURE.md 更新反映当前简化架构 - #12 写入缓冲暂不实施:8 交易对瞬时 8 tps,无压力
43 lines
1.0 KiB
JSON
43 lines
1.0 KiB
JSON
{
|
|
"name": "trade-data",
|
|
"version": "0.1.0",
|
|
"description": "数字货币量化交易系统 - TypeScript 数据模块",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun run run/start.ts",
|
|
"dev:watch": "bun --watch run/start.ts",
|
|
"build": "tsc",
|
|
"start": "bun run run/start.ts",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"lint": "eslint .",
|
|
"format": "prettier --write .",
|
|
"exchange": "bun run run/exchange.ts",
|
|
"ws": "bun run run/start.ts"
|
|
},
|
|
"dependencies": {
|
|
"@timescaledb/typeorm": "^0.0.1",
|
|
"binance": "^3.5.9",
|
|
"ccxt": "^4.5.56",
|
|
"ioredis": "^5.11.1",
|
|
"pg": "^8.21.0",
|
|
"pino": "^10.3.1",
|
|
"pino-pretty": "^13.1.3",
|
|
"pino-roll": "^4.0.0",
|
|
"typeorm": "^1.0.0",
|
|
"yaml": "^2.9.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.3.14",
|
|
"@types/node": "^25.9.2",
|
|
"@types/pg": "^8.20.0",
|
|
"@types/ws": "^8.18.1",
|
|
"eslint": "^10.4.1",
|
|
"prettier": "^3.8.3",
|
|
"ts-node": "^10.9.2",
|
|
"tsx": "^4.22.4",
|
|
"typescript": "^6.0.3",
|
|
"vitest": "^4.1.8"
|
|
}
|
|
}
|