dexbot 1.6.0 → 1.6.1

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 (68) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +5 -4
  3. package/analysis/ama_fitting/package.json +1 -1
  4. package/analysis/trend_detection/package.json +1 -1
  5. package/claw/package.json +1 -1
  6. package/claw/runtimes/openclaw-plugin/openclaw.plugin.json +1 -1
  7. package/claw/runtimes/openclaw-plugin/package.json +1 -1
  8. package/claw/tests/test_claw_mcp_transport.ts +2 -2
  9. package/dist/dexbot.js +1 -1
  10. package/dist/dexbot.js.map +1 -1
  11. package/dist/modules/account_bots.js +2 -2
  12. package/dist/modules/account_bots.js.map +1 -1
  13. package/dist/modules/constants.d.ts +5 -0
  14. package/dist/modules/constants.d.ts.map +1 -1
  15. package/dist/modules/constants.js +22 -0
  16. package/dist/modules/constants.js.map +1 -1
  17. package/dist/modules/dexbot_class.d.ts +3 -0
  18. package/dist/modules/dexbot_class.d.ts.map +1 -1
  19. package/dist/modules/dexbot_class.js +39 -6
  20. package/dist/modules/dexbot_class.js.map +1 -1
  21. package/dist/modules/dexbot_fill_runtime.d.ts +25 -0
  22. package/dist/modules/dexbot_fill_runtime.d.ts.map +1 -1
  23. package/dist/modules/dexbot_fill_runtime.js +162 -7
  24. package/dist/modules/dexbot_fill_runtime.js.map +1 -1
  25. package/dist/modules/dexbot_maintenance_runtime.d.ts +23 -0
  26. package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -1
  27. package/dist/modules/dexbot_maintenance_runtime.js +90 -2
  28. package/dist/modules/dexbot_maintenance_runtime.js.map +1 -1
  29. package/dist/modules/dexbot_state_recovery.d.ts.map +1 -1
  30. package/dist/modules/dexbot_state_recovery.js +16 -1
  31. package/dist/modules/dexbot_state_recovery.js.map +1 -1
  32. package/dist/modules/market_adapter_whitelist.js +1 -1
  33. package/dist/modules/market_adapter_whitelist.js.map +1 -1
  34. package/dist/modules/order/grid.d.ts.map +1 -1
  35. package/dist/modules/order/grid.js +46 -10
  36. package/dist/modules/order/grid.js.map +1 -1
  37. package/dist/modules/order/grid_reconcile_internal.d.ts.map +1 -1
  38. package/dist/modules/order/grid_reconcile_internal.js +34 -3
  39. package/dist/modules/order/grid_reconcile_internal.js.map +1 -1
  40. package/dist/modules/order/logger.js +1 -1
  41. package/dist/modules/order/logger.js.map +1 -1
  42. package/dist/modules/order/manager.d.ts +14 -1
  43. package/dist/modules/order/manager.d.ts.map +1 -1
  44. package/dist/modules/order/manager.js +54 -2
  45. package/dist/modules/order/manager.js.map +1 -1
  46. package/dist/modules/order/utils/math.d.ts +5 -1
  47. package/dist/modules/order/utils/math.d.ts.map +1 -1
  48. package/dist/modules/order/utils/math.js +6 -2
  49. package/dist/modules/order/utils/math.js.map +1 -1
  50. package/dist/modules/order/utils/order.d.ts.map +1 -1
  51. package/dist/modules/order/utils/order.js +4 -1
  52. package/dist/modules/order/utils/order.js.map +1 -1
  53. package/dist/scripts/generate_market_adapter_whitelist.d.ts.map +1 -1
  54. package/dist/scripts/generate_market_adapter_whitelist.js +3 -2
  55. package/dist/scripts/generate_market_adapter_whitelist.js.map +1 -1
  56. package/docs/BITSHARES_ONBOARDING.md +14 -6
  57. package/docs/DEXBOT_COMPARISON.md +3 -3
  58. package/docs/EVOLUTION.md +8 -7
  59. package/docs/FUND_MOVEMENT_AND_ACCOUNTING.md +1 -1
  60. package/docs/GRID_RECALCULATION.md +8 -7
  61. package/docs/README.md +1 -1
  62. package/market_adapter/README.md +13 -10
  63. package/package.json +1 -1
  64. package/scripts/README.md +4 -4
  65. package/analysis/results/ama_sweep_results_lp_pool_133_1h.json +0 -2455
  66. package/analysis/results/bot_fitting_results_lp_pool_133_1h.json +0 -218
  67. package/analysis/tradingview/h-bts_tradingview.html +0 -1570
  68. package/analysis/tradingview/t-bts_tradingview.html +0 -1570
@@ -77,25 +77,25 @@ dexbot white
77
77
  This writes `profiles/market_adapter_whitelist.json`, where each bot's AMA,
78
78
  dynamic-weight, and range-scaling flags can be inspected or adjusted.
79
79
 
80
- By default, newly generated entries whitelist AMA pricing and asymmetric bounds,
81
- but keep dynamic weights disabled. To opt newly generated entries into dynamic
82
- weights:
80
+ By default, newly generated entries whitelist AMA pricing only, keeping both
81
+ dynamic weights and range scaling (asymmetric bounds) disabled. To opt newly
82
+ generated entries into dynamic weights:
83
83
 
84
84
  ```bash
85
85
  dexbot white --dynamic-weight
86
86
  ```
87
87
 
88
- To keep asymmetric bounds disabled:
88
+ To opt newly generated entries into range scaling:
89
89
 
90
90
  ```bash
91
- dexbot white --no-asymmetric-bounds
91
+ dexbot white --asymmetric-bounds
92
92
  ```
93
93
 
94
94
  To overwrite an existing entry (existing entries are otherwise preserved):
95
95
 
96
96
  ```bash
97
97
  dexbot white --dynamic-weight --bot <botKey>
98
- dexbot white --no-asymmetric-bounds --bot <botKey>
98
+ dexbot white --asymmetric-bounds --bot <botKey>
99
99
  ```
100
100
 
101
101
  `--bot` implies overwrite for that key only; without it, `dexbot white` only adds missing bots.
@@ -156,7 +156,10 @@ whitelist gate:
156
156
 
157
157
  This is separate from dynamic buy/sell weighting. Both grid-range effects are
158
158
  enabled only when `asymmetricBounds: true` is set in
159
- `profiles/market_adapter_whitelist.json`.
159
+ `profiles/market_adapter_whitelist.json`. Range scaling is opt-in: `dexbot white`
160
+ generates AMA-only entries by default, so enable it with
161
+ `dexbot white --asymmetric-bounds` (new bots) or
162
+ `dexbot white --asymmetric-bounds --bot <botKey>` (existing entry).
160
163
 
161
164
  Technical formula and tuning details are in
162
165
  [Grid Range Scaling Model](#grid-range-scaling-model).
@@ -333,8 +336,8 @@ Dry-run log lines include `[DRY RUN]` or `[suppressed, dry-run]`.
333
336
  |------|---------|
334
337
  | Generate whitelist | `dexbot white` |
335
338
  | Opt new whitelist entries into dynamic weights | `dexbot white --dynamic-weight` |
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>` |
339
+ | Opt new whitelist entries into range scaling | `dexbot white --asymmetric-bounds` |
340
+ | Overwrite existing entry for a specific bot | `dexbot white --dynamic-weight --bot <botKey>` \| `dexbot white --asymmetric-bounds --bot <botKey>` |
338
341
  | Prune stale whitelist entries (bots removed from bots.json) | `dexbot white --prune` |
339
342
  | Probe public CEX availability | `node dist/market_adapter/inputs/fetch_cex_synthetic_data.js --exchange auto --check-only` |
340
343
  | Seed synthetic cross candles | `node dist/market_adapter/inputs/fetch_cex_synthetic_data.js --exchange auto --bot-key <bot-key>` |
@@ -637,7 +640,7 @@ market_adapter/
637
640
  "<botKey>": {
638
641
  "ama": true,
639
642
  "dynamicWeight": false,
640
- "asymmetricBounds": true
643
+ "asymmetricBounds": false
641
644
  }
642
645
  }
643
646
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dexbot",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
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": {
package/scripts/README.md CHANGED
@@ -98,18 +98,18 @@ node dist/scripts/validate_bots.js
98
98
  **Purpose:** Generate `profiles/market_adapter_whitelist.json` from bots whose `gridPrice` uses AMA mode.
99
99
  ```bash
100
100
  # Add missing AMA bots from profiles/bots.json to profiles/market_adapter_whitelist.json.
101
- # Existing entries are preserved; new entries enable AMA/range scaling and leave dynamicWeight disabled.
101
+ # Existing entries are preserved; new entries enable AMA only and leave dynamicWeight and range scaling disabled.
102
102
  dexbot white
103
103
 
104
104
  # Add missing AMA bots with dynamicWeight enabled for newly generated entries
105
105
  dexbot white --dynamic-weight
106
106
 
107
- # Add missing AMA bots with asymmetricBounds disabled for newly generated entries
108
- dexbot white --no-asymmetric-bounds
107
+ # Add missing AMA bots with range scaling (asymmetricBounds) enabled for newly generated entries
108
+ dexbot white --asymmetric-bounds
109
109
 
110
110
  # Overwrite existing entry for a specific bot (implies overwrite for that key only; other bots unchanged)
111
111
  dexbot white --dynamic-weight --bot <botKey>
112
- dexbot white --no-asymmetric-bounds --bot <botKey>
112
+ dexbot white --asymmetric-bounds --bot <botKey>
113
113
 
114
114
  # Remove whitelist entries for bots no longer in profiles/bots.json
115
115
  dexbot white --prune