-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
248 lines (248 loc) · 14.3 KB
/
Copy pathpackage.json
File metadata and controls
248 lines (248 loc) · 14.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
{
"name": "quantbot",
"version": "1.0.3",
"description": "Advanced Telegram bot for trading simulation, CA monitoring, and PNL analysis using Birdeye API and Helius WebSockets",
"engines": {
"node": ">=18 <25"
},
"main": "packages/workflows/src/index.ts",
"workspaces": [
"packages/*"
],
"scripts": {
"lake:verify": "uv run tools/lake/rebuild_clickhouse_from_parquet.py --dry-run && uv run tools/lake/rebuild_duckdb_from_clickhouse.py --dry-run",
"lake:ch:rebuild": "uv run tools/lake/rebuild_clickhouse_from_parquet.py --force",
"lake:duckdb:rebuild": "uv run tools/lake/rebuild_duckdb_from_clickhouse.py --force",
"lake:rebuild": "uv run tools/lake/rebuild_clickhouse_from_parquet.py --force && uv run tools/lake/rebuild_duckdb_from_clickhouse.py --force",
"dev": "pnpm exec tsx scripts/dev.ts",
"migrate:up": "tsx scripts/migrations/migrate-simple.ts up",
"migrate:status": "tsx scripts/migrations/migrate-simple.ts status",
"build": "turbo run build",
"build:full": "pnpm build:ordered",
"build:affected": "turbo run build --filter='...[origin/main]'",
"build:api-deps": "pnpm --filter @qb-quantbot/core build && pnpm --filter @qb-quantbot/test-infra build && pnpm --filter @qb-quantbot/infra build && pnpm --filter @qb-quantbot/storage build && pnpm --filter @qb-quantbot/ohlcv build && pnpm --filter @qb-quantbot/jobs build && pnpm --filter @qb-quantbot/ingestion build && pnpm --filter @qb-quantbot/data-lake-client build && pnpm --filter @qb-quantbot/simulation build && pnpm --filter @qb-quantbot/workflows build && pnpm --filter @qb-quantbot/data-observatory build && pnpm --filter @qb-quantbot/analytics build",
"build:ordered": "pnpm --filter @qb-quantbot/core build && pnpm --filter @qb-quantbot/test-infra build && pnpm --filter @qb-quantbot/infra build && pnpm --filter @qb-quantbot/storage build && pnpm --filter @qb-quantbot/ohlcv build && pnpm --filter @qb-quantbot/jobs build && pnpm --filter @qb-quantbot/ingestion build && pnpm --filter @qb-quantbot/data-lake-client build && pnpm --filter @qb-quantbot/simulation build && pnpm --filter @qb-quantbot/workflows build && pnpm --filter @qb-quantbot/data-observatory build && pnpm --filter @qb-quantbot/analytics build && pnpm --filter @qb-quantbot/api build && pnpm --filter @qb-quantbot/qb-dashboard build && pnpm -r --filter './packages/*' --filter '!@qb-quantbot/core' --filter '!@qb-quantbot/infra' --filter '!@qb-quantbot/storage' --filter '!@qb-quantbot/ohlcv' --filter '!@qb-quantbot/jobs' --filter '!@qb-quantbot/ingestion' --filter '!@qb-quantbot/data-lake-client' --filter '!@qb-quantbot/data-observatory' --filter '!@qb-quantbot/simulation' --filter '!@qb-quantbot/workflows' --filter '!@qb-quantbot/analytics' --filter '!@qb-quantbot/api' --filter '!@qb-quantbot/qb-dashboard' --filter '!@qb-quantbot/test-infra' --filter '!my-v0-project' build",
"build:incremental": "tsc --build --force packages/core/tsconfig.json && tsc --build packages/infra/tsconfig.json && tsc --build packages/storage/tsconfig.json && tsc --build packages/ohlcv/tsconfig.json && tsc --build packages/analytics/tsconfig.json && tsc --build packages/jobs/tsconfig.json && tsc --build packages/ingestion/tsconfig.json && tsc --build packages/simulation/tsconfig.json && tsc --build packages/workflows/tsconfig.json && tsc --build packages/cli/tsconfig.json",
"build:force": "cd packages/core && tsc --build --force && cd ../infra && tsc --build --force && cd ../storage && tsc --build --force && cd ../ohlcv && tsc --build --force && cd ../analytics && tsc --build --force && cd ../ingestion && tsc --build --force && cd ../..",
"build:core": "pnpm --filter @qb-quantbot/core build",
"build:utils": "pnpm --filter @qb-quantbot/utils build",
"build:storage": "pnpm --filter @qb-quantbot/storage build",
"build:ingestion": "pnpm --filter @qb-quantbot/ingestion build",
"build:packages": "pnpm --filter './packages/*' build",
"build:watch": "tsc --watch",
"clean": "./scripts/clean-build.sh",
"test": "vitest run --config vitest.unit-fast.config.ts",
"test:watch": "vitest --watch --config vitest.unit-fast.config.ts",
"test:unit-fast": "vitest run --config vitest.unit-fast.config.ts",
"test:int": "vitest run --config vitest.integration.config.ts",
"test:perf": "vitest run --config vitest.perf.config.ts",
"test:setup": "tsx scripts/test/setup-clickhouse.ts",
"test:setup:all": "tsx scripts/test/setup-test-environments.ts",
"test:coverage": "vitest run --coverage",
"test:cov": "vitest run --coverage",
"test:coverage:with-db": "pnpm test:setup && RUN_DB_STRESS=1 pnpm test:coverage",
"test:all": "pnpm test:unit-fast && pnpm test:int && pnpm test:perf && pnpm test:stress",
"coverage:store": "pnpm test:cov && ./scripts/coverage-store-and-print.sh coverage/coverage-summary.json",
"coverage:fetch": "./scripts/coverage-fetch.sh latest | jq",
"test:unit": "vitest run --config vitest.unit-fast.config.ts",
"test:integration": "vitest run --config vitest.integration.config.ts",
"test:properties": "vitest run packages/**/tests/properties/**/*.test.ts packages/**/tests/properties/**/*.spec.ts",
"test:fuzzing": "vitest run packages/**/tests/fuzzing/**/*.test.ts packages/**/tests/fuzzing/**/*.spec.ts",
"test:e2e": "vitest run packages/**/tests/e2e/**/*.test.ts packages/**/tests/e2e/**/*.spec.ts",
"test:stress": "vitest run --config vitest.stress.config.ts",
"test:py": "./scripts/test-py-lanes.sh unit",
"test:py:unit": "./scripts/test-py-lanes.sh unit",
"test:py:int": "./scripts/test-py-lanes.sh int",
"test:py:perf": "./scripts/test-py-lanes.sh perf",
"test:py:all": "./scripts/test-py-lanes.sh unit && ./scripts/test-py-lanes.sh int && ./scripts/test-py-lanes.sh perf",
"test:stress:db": "RUN_DB_STRESS=1 vitest run --config vitest.stress.config.ts",
"test:stress:chaos": "RUN_CHAOS_TESTS=1 vitest run --config vitest.stress.config.ts",
"test:stress:all": "RUN_DB_STRESS=1 RUN_CHAOS_TESTS=1 RUN_INTEGRATION_STRESS=1 vitest run --config vitest.stress.config.ts",
"test:ci": "vitest run --coverage",
"test:packages": "pnpm -r test",
"test:regression:r1-r3": "pnpm -C packages/cli exec vitest run tests/regression/ --run",
"test:regression:r2": "tsx scripts/test-infra-suite-parity-r2.ts",
"test:baseline:b1-record": "tsx scripts/test-infra-b1-baseline.ts",
"test:baseline:b1-check": "tsx scripts/test-infra-b1-baseline.ts --check",
"lint": "eslint 'packages/**/src/**/*.ts' 'packages/**/tests/**/*.ts'",
"lint:fix": "eslint 'packages/**/src/**/*.ts' 'packages/**/tests/**/*.ts' --fix",
"lint:scripts": "eslint 'scripts/**/*.ts'",
"lint:packages": "pnpm -r lint",
"format": "prettier --write 'packages/**/src/**/*.ts' 'packages/**/tests/**/*.ts' 'scripts/**/*.ts' '*.json' '*.md'",
"format:check": "prettier --check 'packages/**/src/**/*.ts' 'packages/**/tests/**/*.ts' 'scripts/**/*.ts' '*.json' '*.md'",
"typecheck": "tsc --noEmit",
"typecheck:packages": "pnpm -r typecheck",
"precommit": "pnpm verify:precommit",
"prepush": "pnpm verify:prepush",
"check:test-requirements": "ts-node scripts/git/check-test-requirements.ts",
"verify:workflow-contracts": "tsx scripts/verify-workflow-contract.ts",
"verify:architecture-boundaries": "tsx scripts/verify-architecture-boundaries.ts",
"verify:boundaries-ast": "tsx scripts/verify-boundaries-ast.ts",
"verify:simulation-boundary": "tsx scripts/verify-simulation-boundary.ts",
"verify:research-boundary": "tsx scripts/verify-research-boundary.ts",
"verify:forbid-imports": "./tools/ci/forbid_imports.sh",
"verify:package-exports": "tsx scripts/ci/verify-package-exports.ts",
"check:no-build-artifacts": "tsx scripts/ci/check-no-build-artifacts.ts",
"check:hygiene": "tsx scripts/ci/hygiene-checks.ts",
"check:no-live-trading": "tsx scripts/ci/check-no-live-trading.ts",
"verify:python-boundaries": "tsx scripts/ci/verify-python-boundaries.ts",
"verify:python-boundary": "bash scripts/ci/verify-python-boundary.sh",
"verify:python-engine": "tsx scripts/ci/verify-python-engine-usage.ts",
"verify:handler-tests": "tsx scripts/ci/verify-handler-tests.ts",
"verify:property-tests": "tsx scripts/ci/verify-property-tests.ts",
"verify:changelog": "tsx scripts/ci/verify-changelog.ts",
"verify:documentation": "tsx scripts/ci/verify-documentation.ts",
"verify:docs-links": "bash scripts/ci/check-docs-links.sh",
"verify:no-workspace-refs": "tsx scripts/ci/verify-no-workspace-refs.ts",
"verify:package-versions": "tsx scripts/ci/verify-package-versions.ts",
"verify:schema-migrations": "tsx scripts/ci/check-schema-migrations.ts",
"verify:tarball": "bash scripts/ci/verify-tarball.sh",
"version:bump": "tsx scripts/version/bump-package-version.ts",
"check:coverage-decrease": "tsx scripts/ci/check-coverage-decrease.ts",
"test:smoke": "vitest run tests/smoke",
"quality-gates:pr": "pnpm verify:ci",
"quality-gates:release": "pnpm verify:ci && pnpm test:stress && pnpm check:coverage-decrease",
"verify:fast": "pnpm lint && pnpm typecheck",
"verify:precommit": "pnpm lint && pnpm typecheck",
"verify:prepush": "pnpm lint && pnpm typecheck && pnpm test:smoke && pnpm verify:boundaries-ast && pnpm verify:workflow-contracts && pnpm verify:rh0",
"verify:ci": "pnpm lint && pnpm typecheck && pnpm test:smoke && pnpm verify:boundaries-ast && pnpm verify:simulation-boundary && pnpm check:no-live-trading && pnpm verify:rh0",
"verify:rh0": "bash scripts/runset-pipeline/rh0_timestamp_regression.sh",
"verify:rh0:full": "bash scripts/runset-pipeline/rh0_timestamp_regression.sh --include-ts3",
"verify:advisory": "echo '[ADVISORY] Running non-blocking checks...' && (pnpm verify:changelog || echo '[ADVISORY] WARN: verify:changelog failed') && (pnpm verify:handler-tests || echo '[ADVISORY] WARN: verify:handler-tests failed') && echo '[ADVISORY] Done (non-blocking).'",
"smoke:ports": "tsx packages/workflows/src/dev/smokePorts.ts",
"audit": "npm audit --audit-level=moderate",
"audit:fix": "npm audit fix",
"depcheck": "depcheck",
"depcheck:all": "pnpm -r exec depcheck",
"clickhouse:start": "docker-compose up -d clickhouse",
"clickhouse:stop": "docker-compose stop clickhouse",
"test:db-stress": "bash scripts/test-db-stress.sh",
"cli": "node packages/cli/dist/bin/quantbot.js",
"quantbot": "pnpm --filter @qb-quantbot/cli exec quantbot",
"sim:strategies": "uv run tools/backtest/run_strategy_simulation.py",
"compute:report-dashboard": "uv run tools/report-dashboard/compute_strategies.py",
"compute:report-dashboard:full": "pnpm sim:strategies && pnpm compute:report-dashboard",
"views:dashboard": "uv run tools/report-dashboard/create_dashboard_views.py",
"serve:report-dashboard": "pnpm --filter @qb-quantbot/report-dashboard build && tsx scripts/serve-report-dashboard.ts",
"serve:qb-api": "pnpm --filter @qb-quantbot/report-dashboard build && pnpm --filter @qb-quantbot/qb-api start",
"build:qb-web": "pnpm --filter @qb-quantbot/qb-web build",
"parquet-queue-runner": "tsx scripts/parquet-queue-runner.ts",
"parquet-first-pipeline": "bash scripts/run-parquet-first-pipeline.sh",
"seed:strategies": "tsx scripts/seed-strategies.ts",
"prepare": "husky"
},
"keywords": [
"telegram",
"bot",
"trading",
"simulation",
"birdeye",
"helius",
"solana",
"crypto",
"pnl",
"ichimoku",
"technical-analysis"
],
"author": "QuantBot Team",
"license": "ISC",
"type": "commonjs",
"dependencies": {
"@clickhouse/client": "^1.14.0",
"@coral-xyz/anchor": "^0.32.1",
"@coral-xyz/borsh": "^0.32.1",
"@influxdata/influxdb-client": "^1.33.2",
"@influxdata/influxdb-client-apis": "^1.33.2",
"@solana/web3.js": "^1.98.4",
"@triton-one/yellowstone-grpc": "^4.0.2",
"@types/ws": "^8.18.1",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"axios": "^1.13.5",
"cheerio": "^1.1.2",
"commander": "^12.0.0",
"csv-parse": "^6.1.0",
"csv-parser": "^3.2.0",
"csv-stringify": "^6.6.0",
"csv-writer": "^1.6.0",
"dotenv": "^17.2.3",
"duckdb": "^1.4.4",
"lru-cache": "^10.0.0",
"luxon": "^3.7.2",
"minipass-json-stream": "^1.0.2",
"pg": "^8.13.0",
"telegraf": "^4.16.3",
"telegram": "^2.26.22",
"winston": "^3.18.3",
"winston-daily-rotate-file": "^5.0.0",
"ws": "^8.18.3",
"zod": "^4.1.13",
"zstandard": "^0.1.3"
},
"overrides": {
"string-width": "^5.0.0"
},
"pnpm": {
"overrides": {
"unicorn-magic": "0.4.0",
"tar": ">=7.5.8",
"minimatch": ">=10.2.3",
"tmp": ">=0.2.4",
"@isaacs/brace-expansion": ">=5.0.1",
"undici": ">=7.18.2",
"rollup": ">=4.59.0",
"underscore": ">=1.13.8",
"diff": ">=4.0.4",
"qs": ">=6.14.2",
"@tootallnate/once": ">=3.0.1",
"bn.js": ">=5.2.3",
"lodash": ">=4.17.23"
},
"patchedDependencies": {
"unicorn-magic@0.4.0": "patches/unicorn-magic@0.4.0.patch"
},
"onlyBuiltDependencies": [
"bufferutil",
"es5-ext",
"esbuild",
"protobufjs",
"sharp",
"unrs-resolver",
"utf-8-validate"
]
},
"devDependencies": {
"turbo": "^2.3.0",
"@qb-quantbot/infra": "workspace:*",
"@qb-quantbot/jobs": "workspace:*",
"@eslint/js": "^9.39.2",
"@types/luxon": "^3.7.1",
"@types/node": "^24.10.1",
"@types/pg": "^8.10.0",
"@types/supertest": "^6.0.3",
"@types/yaml": "^1.9.7",
"@typescript-eslint/eslint-plugin": "^8.49.0",
"@typescript-eslint/parser": "^8.49.0",
"@vitest/coverage-v8": "^4.0.15",
"depcheck": "^1.4.7",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"fast-check": "^4.4.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"markdown-link-check": "^3.14.2",
"node-gyp": "^12.1.0",
"prettier": "^3.7.4",
"supertest": "^7.1.4",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.49.0",
"vitest": "^4.0.15",
"yaml": "^2.8.2"
},
"packageManager": "pnpm@10.31.0+sha512.e3927388bfaa8078ceb79b748ffc1e8274e84d75163e67bc22e06c0d3aed43dd153151cbf11d7f8301ff4acb98c68bdc5cadf6989532801ffafe3b3e4a63c268"
}