dexbot 1.4.23 → 1.4.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +1 -0
  3. package/analysis/README.md +49 -0
  4. package/analysis/ama_fitting/package.json +1 -1
  5. package/analysis/grid_correction_check.ts +896 -0
  6. package/analysis/trend_detection/package.json +1 -1
  7. package/claw/package.json +1 -1
  8. package/claw/runtimes/openclaw-plugin/openclaw.plugin.json +1 -1
  9. package/claw/runtimes/openclaw-plugin/package.json +1 -1
  10. package/claw/tests/test_claw_mcp_transport.ts +2 -2
  11. package/dist/analysis/grid_correction_check.d.ts +90 -0
  12. package/dist/analysis/grid_correction_check.d.ts.map +1 -0
  13. package/dist/analysis/grid_correction_check.js +861 -0
  14. package/dist/analysis/grid_correction_check.js.map +1 -0
  15. package/dist/dexbot.d.ts.map +1 -1
  16. package/dist/dexbot.js +62 -6
  17. package/dist/dexbot.js.map +1 -1
  18. package/dist/modules/account_bots.d.ts.map +1 -1
  19. package/dist/modules/account_bots.js +53 -5
  20. package/dist/modules/account_bots.js.map +1 -1
  21. package/dist/modules/account_orders.d.ts +7 -10
  22. package/dist/modules/account_orders.d.ts.map +1 -1
  23. package/dist/modules/account_orders.js +26 -2
  24. package/dist/modules/account_orders.js.map +1 -1
  25. package/dist/modules/bitshares-native/subscriptions.d.ts.map +1 -1
  26. package/dist/modules/bitshares-native/subscriptions.js +176 -21
  27. package/dist/modules/bitshares-native/subscriptions.js.map +1 -1
  28. package/dist/modules/chain_orders.d.ts.map +1 -1
  29. package/dist/modules/chain_orders.js +21 -2
  30. package/dist/modules/chain_orders.js.map +1 -1
  31. package/dist/modules/config.d.ts.map +1 -1
  32. package/dist/modules/config.js +27 -0
  33. package/dist/modules/config.js.map +1 -1
  34. package/dist/modules/constants.d.ts +15 -1
  35. package/dist/modules/constants.d.ts.map +1 -1
  36. package/dist/modules/constants.js +70 -6
  37. package/dist/modules/constants.js.map +1 -1
  38. package/dist/modules/credit_runtime.d.ts.map +1 -1
  39. package/dist/modules/credit_runtime.js +31 -32
  40. package/dist/modules/credit_runtime.js.map +1 -1
  41. package/dist/modules/dexbot_class.d.ts +24 -0
  42. package/dist/modules/dexbot_class.d.ts.map +1 -1
  43. package/dist/modules/dexbot_class.js +66 -12
  44. package/dist/modules/dexbot_class.js.map +1 -1
  45. package/dist/modules/dexbot_cow_runtime.d.ts +22 -17
  46. package/dist/modules/dexbot_cow_runtime.d.ts.map +1 -1
  47. package/dist/modules/dexbot_cow_runtime.js +646 -128
  48. package/dist/modules/dexbot_cow_runtime.js.map +1 -1
  49. package/dist/modules/dexbot_fill_runtime.d.ts +11 -1
  50. package/dist/modules/dexbot_fill_runtime.d.ts.map +1 -1
  51. package/dist/modules/dexbot_fill_runtime.js +108 -1
  52. package/dist/modules/dexbot_fill_runtime.js.map +1 -1
  53. package/dist/modules/dexbot_maintenance_runtime.d.ts +17 -1
  54. package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -1
  55. package/dist/modules/dexbot_maintenance_runtime.js +215 -26
  56. package/dist/modules/dexbot_maintenance_runtime.js.map +1 -1
  57. package/dist/modules/dexbot_startup_runtime.d.ts +1 -0
  58. package/dist/modules/dexbot_startup_runtime.d.ts.map +1 -1
  59. package/dist/modules/dexbot_startup_runtime.js +58 -7
  60. package/dist/modules/dexbot_startup_runtime.js.map +1 -1
  61. package/dist/modules/dexbot_state_recovery.d.ts.map +1 -1
  62. package/dist/modules/dexbot_state_recovery.js +55 -3
  63. package/dist/modules/dexbot_state_recovery.js.map +1 -1
  64. package/dist/modules/graceful_shutdown.d.ts +12 -1
  65. package/dist/modules/graceful_shutdown.d.ts.map +1 -1
  66. package/dist/modules/graceful_shutdown.js +39 -1
  67. package/dist/modules/graceful_shutdown.js.map +1 -1
  68. package/dist/modules/key_store.d.ts.map +1 -1
  69. package/dist/modules/key_store.js +38 -1
  70. package/dist/modules/key_store.js.map +1 -1
  71. package/dist/modules/order/accounting.d.ts.map +1 -1
  72. package/dist/modules/order/accounting.js +20 -3
  73. package/dist/modules/order/accounting.js.map +1 -1
  74. package/dist/modules/order/grid.d.ts +1 -1
  75. package/dist/modules/order/grid.d.ts.map +1 -1
  76. package/dist/modules/order/grid.js +288 -31
  77. package/dist/modules/order/grid.js.map +1 -1
  78. package/dist/modules/order/grid_reconcile.d.ts +4 -2
  79. package/dist/modules/order/grid_reconcile.d.ts.map +1 -1
  80. package/dist/modules/order/grid_reconcile.js +242 -222
  81. package/dist/modules/order/grid_reconcile.js.map +1 -1
  82. package/dist/modules/order/grid_reconcile_internal.d.ts +11 -1
  83. package/dist/modules/order/grid_reconcile_internal.d.ts.map +1 -1
  84. package/dist/modules/order/grid_reconcile_internal.js +132 -6
  85. package/dist/modules/order/grid_reconcile_internal.js.map +1 -1
  86. package/dist/modules/order/manager.d.ts +68 -14
  87. package/dist/modules/order/manager.d.ts.map +1 -1
  88. package/dist/modules/order/manager.js +241 -52
  89. package/dist/modules/order/manager.js.map +1 -1
  90. package/dist/modules/order/strategy.d.ts.map +1 -1
  91. package/dist/modules/order/strategy.js +25 -8
  92. package/dist/modules/order/strategy.js.map +1 -1
  93. package/dist/modules/order/sync_engine.d.ts.map +1 -1
  94. package/dist/modules/order/sync_engine.js +261 -166
  95. package/dist/modules/order/sync_engine.js.map +1 -1
  96. package/dist/modules/order/utils/math.d.ts +47 -5
  97. package/dist/modules/order/utils/math.d.ts.map +1 -1
  98. package/dist/modules/order/utils/math.js +175 -11
  99. package/dist/modules/order/utils/math.js.map +1 -1
  100. package/dist/modules/order/utils/order.d.ts +16 -15
  101. package/dist/modules/order/utils/order.d.ts.map +1 -1
  102. package/dist/modules/order/utils/order.js +199 -32
  103. package/dist/modules/order/utils/order.js.map +1 -1
  104. package/dist/modules/order/utils/slot.d.ts +8 -0
  105. package/dist/modules/order/utils/slot.d.ts.map +1 -0
  106. package/dist/modules/order/utils/slot.js +16 -0
  107. package/dist/modules/order/utils/slot.js.map +1 -0
  108. package/dist/modules/order/utils/system.d.ts.map +1 -1
  109. package/dist/modules/order/utils/system.js +3 -2
  110. package/dist/modules/order/utils/system.js.map +1 -1
  111. package/dist/modules/order/utils/validate.d.ts +5 -8
  112. package/dist/modules/order/utils/validate.d.ts.map +1 -1
  113. package/dist/modules/order/utils/validate.js +64 -82
  114. package/dist/modules/order/utils/validate.js.map +1 -1
  115. package/dist/modules/order/working_grid.d.ts +5 -0
  116. package/dist/modules/order/working_grid.d.ts.map +1 -1
  117. package/dist/modules/order/working_grid.js +21 -0
  118. package/dist/modules/order/working_grid.js.map +1 -1
  119. package/dist/modules/paths.d.ts +4 -2
  120. package/dist/modules/paths.d.ts.map +1 -1
  121. package/dist/modules/paths.js +79 -24
  122. package/dist/modules/paths.js.map +1 -1
  123. package/dist/scripts/analyze-orders.d.ts.map +1 -1
  124. package/dist/scripts/analyze-orders.js +23 -2
  125. package/dist/scripts/analyze-orders.js.map +1 -1
  126. package/dist/scripts/generate_market_adapter_whitelist.d.ts +2 -5
  127. package/dist/scripts/generate_market_adapter_whitelist.d.ts.map +1 -1
  128. package/dist/scripts/generate_market_adapter_whitelist.js +83 -1
  129. package/dist/scripts/generate_market_adapter_whitelist.js.map +1 -1
  130. package/docs/DEXBOT_COMPARISON.md +15 -15
  131. package/docs/EVOLUTION.md +10 -8
  132. package/docs/FUND_MOVEMENT_AND_ACCOUNTING.md +1 -1
  133. package/docs/GRID_RECALCULATION.md +6 -0
  134. package/docs/README.md +2 -2
  135. package/market_adapter/README.md +10 -0
  136. package/package.json +2 -1
  137. package/scripts/README.md +4 -0
@@ -91,6 +91,15 @@ To keep asymmetric bounds disabled:
91
91
  dexbot white --no-asymmetric-bounds
92
92
  ```
93
93
 
94
+ To overwrite an existing entry (existing entries are otherwise preserved):
95
+
96
+ ```bash
97
+ dexbot white --dynamic-weight --bot <botKey>
98
+ dexbot white --no-asymmetric-bounds --bot <botKey>
99
+ ```
100
+
101
+ `--bot` implies overwrite for that key only; without it, `dexbot white` only adds missing bots.
102
+
94
103
  Remove stale whitelist entries (bots no longer in `bots.json`):
95
104
 
96
105
  ```bash
@@ -325,6 +334,7 @@ Dry-run log lines include `[DRY RUN]` or `[suppressed, dry-run]`.
325
334
  | Generate whitelist | `dexbot white` |
326
335
  | Opt new whitelist entries into dynamic weights | `dexbot white --dynamic-weight` |
327
336
  | Generate AMA-only entries without range scaling | `dexbot white --no-asymmetric-bounds` |
337
+ | Overwrite existing entry for a specific bot | `dexbot white --dynamic-weight --bot <botKey>` |
328
338
  | Prune stale whitelist entries (bots removed from bots.json) | `dexbot white --prune` |
329
339
  | Probe public CEX availability | `node dist/market_adapter/inputs/fetch_cex_synthetic_data.js --exchange auto --check-only` |
330
340
  | Seed synthetic cross candles | `node dist/market_adapter/inputs/fetch_cex_synthetic_data.js --exchange auto --bot-key <bot-key>` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dexbot",
3
- "version": "1.4.23",
3
+ "version": "1.4.25",
4
4
  "description": "The first open source trading bot with zero runtime dependencies and a fully adaptive market making strategy.",
5
5
  "main": "dist/modules/dexbot_class.js",
6
6
  "exports": {
@@ -89,6 +89,7 @@
89
89
  "ama:chart:lp-local": "npm run build && node dist/analysis/ama_fitting/generate_unified_comparison_chart.js",
90
90
  "analysis:derivatives": "npm run build && node dist/analysis/analyze_derivatives.js",
91
91
  "analysis:trade-pnl": "npm run build && node dist/analysis/trade_profitability.js",
92
+ "analysis:grid-check": "npm run build && node dist/analysis/grid_correction_check.js",
92
93
  "native:release-gates": "npm run build && npm run build:tests && node dist/scripts/native_release_gates.js",
93
94
  "native:serial-snapshots": "npm run build && npm run build:tests && node dist/tests/test_native_serial_ops.js",
94
95
  "native:ecc-invariants": "npm run build && npm run build:tests && node dist/tests/test_native_ecc.js",
package/scripts/README.md CHANGED
@@ -107,6 +107,10 @@ dexbot white --dynamic-weight
107
107
  # Add missing AMA bots with asymmetricBounds disabled for newly generated entries
108
108
  dexbot white --no-asymmetric-bounds
109
109
 
110
+ # Overwrite existing entry for a specific bot (implies overwrite for that key only; other bots unchanged)
111
+ dexbot white --dynamic-weight --bot <botKey>
112
+ dexbot white --no-asymmetric-bounds --bot <botKey>
113
+
110
114
  # Remove whitelist entries for bots no longer in profiles/bots.json
111
115
  dexbot white --prune
112
116