forked from froooze/DEXBot2
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
183 lines (183 loc) · 7.38 KB
/
Copy pathpackage.json
File metadata and controls
183 lines (183 loc) · 7.38 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
{
"name": "dexbot",
"version": "1.4.21",
"description": "The first open source trading bot with zero runtime dependencies and a fully adaptive market making strategy.",
"main": "dist/modules/dexbot_class.js",
"exports": {
".": "./dist/modules/dexbot_class.js",
"./dist/*": "./dist/*",
"./package.json": "./package.json"
},
"bin": {
"dexbot": "dist/dexbot.js",
"bot": "dist/bot.js"
},
"files": [
"dist",
"ecosystem.config.cjs",
"scripts/bots",
"scripts/clean-dist.js",
"scripts/clear-all.sh",
"scripts/clear-logs.sh",
"scripts/clear-market-adapter.sh",
"scripts/clear-orders.sh",
"scripts/create-bot-symlinks.sh",
"scripts/dexbot",
"scripts/git-viewer.sh",
"scripts/keys",
"scripts/lib/dexbot-paths.sh",
"scripts/pdev.sh",
"scripts/pm2",
"scripts/pmain.sh",
"scripts/postinstall.js",
"scripts/ptest.sh",
"scripts/README.md",
"scripts/reset-settings.sh",
"scripts/unlock",
"scripts/update.js",
"claw",
"docs/BITSHARES_ONBOARDING.md",
"docs/CREDENTIAL_SECURITY.md",
"docs/GRID_RECALCULATION.md",
"docs/GRID_RECONCILE.md",
"docs/LOGGING.md",
"docs/MPA_CREDIT_USAGE.md",
"docs/COPY_ON_WRITE_MASTER_PLAN.md",
"docs/COW_INVARIANTS.md",
"docs/FUND_MOVEMENT_AND_ACCOUNTING.md",
"docs/DEXBOT_COMPARISON.md",
"docs/EVOLUTION.md",
"docs/WORKFLOW.md",
"docs/architecture.md",
"docs/developer_guide.md",
"docs/LIFECYCLE.md",
"docs/docker.md",
"market_adapter/README.md",
"modules/README.md",
"analysis",
"!analysis/charts",
"tests/README.md",
"CHANGELOG.md",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=22.12.0"
},
"os": [
"linux",
"darwin"
],
"preferGlobal": true,
"scripts": {
"start": "node -e \"console.error('\\nDEXBot2 does not support npm start or raw pm2 start.\\nThe PM2 launcher must unlock your keystore and start the credential daemon first.\\nStart it with: dexbot pm2 (or ./pm2 from the repo root, or npm run pm2:unlock).\\n'); process.exit(1)\"",
"pm2:unlock": "npm run build && node dist/pm2.js",
"pm2:claw-only": "npm run build && node dist/pm2.js claw-only",
"unlock": "npm run build && node dist/unlock.js",
"unlock:start": "npm run unlock",
"claw:unlock": "npm run build && node dist/unlock.js --claw-only",
"claw:start": "npm run claw:unlock",
"pm2:start": "PROJECT_ROOT=\"$(pwd)\"; SCRIPT_DIR=\"$PROJECT_ROOT/scripts\"; . \"$SCRIPT_DIR/lib/dexbot-paths.sh\"; pm2 start \"$PROFILE_ROOT/ecosystem.config.cjs\"",
"pm2:stop": "PROJECT_ROOT=\"$(pwd)\"; SCRIPT_DIR=\"$PROJECT_ROOT/scripts\"; . \"$SCRIPT_DIR/lib/dexbot-paths.sh\"; pm2 stop \"$PROFILE_ROOT/ecosystem.config.cjs\"",
"pmain": "bash scripts/pmain.sh",
"pdev": "bash scripts/pdev.sh",
"ptest": "bash scripts/ptest.sh",
"lp:chart": "npm run build && node dist/scripts/generate_lp_chart.js",
"market-adapter:whitelist": "npm run build && node dist/scripts/generate_market_adapter_whitelist.js",
"market-adapter:fetch-cex-synthetic": "npm run build && node dist/market_adapter/inputs/fetch_cex_synthetic_data.js",
"analysis:tradingview": "npm run build && node dist/analysis/tradingview/analyze_tradingview.js",
"ama:chart:lp-local": "npm run build && node dist/analysis/ama_fitting/generate_unified_comparison_chart.js",
"analysis:derivatives": "npm run build && node dist/analysis/analyze_derivatives.js",
"analysis:trade-pnl": "npm run build && node dist/analysis/trade_profitability.js",
"native:release-gates": "npm run build && node dist/scripts/native_release_gates.js",
"native:serial-snapshots": "tsx tests/test_native_serial_ops.ts",
"native:ecc-invariants": "tsx tests/test_native_ecc.ts",
"native:corpus": "npm run build && node dist/scripts/generate_mainnet_corpus_report.js",
"test:credit-renewal": "npm run build && node dist/scripts/test-credit-renewal.js",
"version:sync": "npm run build && node dist/scripts/sync-version.js",
"version:check": "npm run build && node dist/scripts/sync-version.js --check",
"verify:browser-bundle": "npm run build && node dist/scripts/verify-browser-bundle.js",
"pretest": "tsc --noEmit",
"test": "node --import tsx scripts/run-tests.ts",
"test:live": "RUN_LIVE_BITSHARES_TESTS=1 node --import tsx scripts/run-tests.ts",
"clean": "node scripts/clean-dist.js",
"build": "npm run clean && tsc && chmod +x dist/dexbot.js dist/bot.js dist/unlock.js dist/pm2.js dist/credential-daemon.js",
"typecheck": "tsc --noEmit",
"build:watch": "tsc --watch",
"version": "npm run version:sync && npm run build",
"postversion": "npm run build",
"prepack": "npm run build",
"prepare": "npm run build",
"postinstall": "node scripts/postinstall.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/froooze/DEXBot2.git"
},
"keywords": [
"bitshares",
"trading",
"market-making",
"grid-trading",
"dex",
"blockchain",
"crypto",
"algorithmic-trading"
],
"author": "",
"license": "MIT",
"type": "module",
"browser": {
"./dist/credential-daemon.js": false,
"./dist/bot.js": false,
"./dist/dexbot.js": false,
"./dist/unlock.js": false,
"./dist/pm2.js": false,
"./dist/modules/launcher/credential_daemon.js": false,
"./dist/modules/launcher/bot_supervisor.js": false,
"./dist/modules/launcher/child_env.js": false,
"./dist/modules/launcher/credential_secret.js": false,
"./dist/modules/launcher/headless_password.js": false,
"./dist/modules/launcher/launch_modes.js": false,
"./dist/modules/launcher/runtime_entry.js": false,
"./dist/modules/launcher/status_reporting.js": false,
"./dist/modules/launcher/supervisor_control.js": false,
"./dist/modules/launcher/monolithic_runtime.js": false,
"./dist/modules/launcher/market_adapter_runtime.js": false,
"./dist/modules/launcher/market_adapter_watchdog.js": false,
"./dist/modules/launcher/foreign_cred_daemon.js": false,
"./dist/modules/launcher/credential_bootstrap.js": false,
"./dist/modules/dexbot_maintenance_runtime.js": false,
"./dist/modules/dexbot_fill_runtime.js": false,
"./dist/modules/dexbot_cow_runtime.js": false,
"./dist/modules/dexbot_state_recovery.js": false,
"./dist/modules/dexbot_startup_runtime.js": false,
"./dist/modules/dexbot_class.js": false,
"./dist/modules/graceful_shutdown.js": false,
"./dist/modules/process_discovery.js": false,
"./dist/modules/credential_runtime.js": false,
"./dist/modules/dexbot_credential_client.js": false,
"./dist/modules/node_health_cache.js": false,
"./dist/modules/daemon_node_health.js": false,
"./dist/modules/storage/node_adapter.js": false,
"./dist/modules/key_store.js": false,
"./dist/modules/paths.js": false,
"./dist/modules/order/logger.js": false,
"./dist/modules/order/export.js": false,
"./dist/modules/order/utils/withPoolRef.js": false,
"./dist/modules/order/utils/system.js": false,
"./dist/market_adapter/market_adapter.js": false,
"./dist/market_adapter/lp_chart_runner.js": false,
"./dist/market_adapter/ama_signal_runner.js": false
},
"bugs": {
"url": "https://github.com/froooze/DEXBot2/issues"
},
"homepage": "https://github.com/froooze/DEXBot2#readme",
"dependencies": {},
"devDependencies": {
"@types/node": "^25.9.1",
"tsx": "^4.22.3",
"typescript": "^6.0.3"
}
}