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.
- package/CHANGELOG.md +13 -0
- package/README.md +5 -4
- package/analysis/ama_fitting/package.json +1 -1
- package/analysis/trend_detection/package.json +1 -1
- package/claw/package.json +1 -1
- package/claw/runtimes/openclaw-plugin/openclaw.plugin.json +1 -1
- package/claw/runtimes/openclaw-plugin/package.json +1 -1
- package/claw/tests/test_claw_mcp_transport.ts +2 -2
- package/dist/dexbot.js +1 -1
- package/dist/dexbot.js.map +1 -1
- package/dist/modules/account_bots.js +2 -2
- package/dist/modules/account_bots.js.map +1 -1
- package/dist/modules/constants.d.ts +5 -0
- package/dist/modules/constants.d.ts.map +1 -1
- package/dist/modules/constants.js +22 -0
- package/dist/modules/constants.js.map +1 -1
- package/dist/modules/dexbot_class.d.ts +3 -0
- package/dist/modules/dexbot_class.d.ts.map +1 -1
- package/dist/modules/dexbot_class.js +39 -6
- package/dist/modules/dexbot_class.js.map +1 -1
- package/dist/modules/dexbot_fill_runtime.d.ts +25 -0
- package/dist/modules/dexbot_fill_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_fill_runtime.js +162 -7
- package/dist/modules/dexbot_fill_runtime.js.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.d.ts +23 -0
- package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.js +90 -2
- package/dist/modules/dexbot_maintenance_runtime.js.map +1 -1
- package/dist/modules/dexbot_state_recovery.d.ts.map +1 -1
- package/dist/modules/dexbot_state_recovery.js +16 -1
- package/dist/modules/dexbot_state_recovery.js.map +1 -1
- package/dist/modules/market_adapter_whitelist.js +1 -1
- package/dist/modules/market_adapter_whitelist.js.map +1 -1
- package/dist/modules/order/grid.d.ts.map +1 -1
- package/dist/modules/order/grid.js +46 -10
- package/dist/modules/order/grid.js.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.d.ts.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.js +34 -3
- package/dist/modules/order/grid_reconcile_internal.js.map +1 -1
- package/dist/modules/order/logger.js +1 -1
- package/dist/modules/order/logger.js.map +1 -1
- package/dist/modules/order/manager.d.ts +14 -1
- package/dist/modules/order/manager.d.ts.map +1 -1
- package/dist/modules/order/manager.js +54 -2
- package/dist/modules/order/manager.js.map +1 -1
- package/dist/modules/order/utils/math.d.ts +5 -1
- package/dist/modules/order/utils/math.d.ts.map +1 -1
- package/dist/modules/order/utils/math.js +6 -2
- package/dist/modules/order/utils/math.js.map +1 -1
- package/dist/modules/order/utils/order.d.ts.map +1 -1
- package/dist/modules/order/utils/order.js +4 -1
- package/dist/modules/order/utils/order.js.map +1 -1
- package/dist/scripts/generate_market_adapter_whitelist.d.ts.map +1 -1
- package/dist/scripts/generate_market_adapter_whitelist.js +3 -2
- package/dist/scripts/generate_market_adapter_whitelist.js.map +1 -1
- package/docs/BITSHARES_ONBOARDING.md +14 -6
- package/docs/DEXBOT_COMPARISON.md +3 -3
- package/docs/EVOLUTION.md +8 -7
- package/docs/FUND_MOVEMENT_AND_ACCOUNTING.md +1 -1
- package/docs/GRID_RECALCULATION.md +8 -7
- package/docs/README.md +1 -1
- package/market_adapter/README.md +13 -10
- package/package.json +1 -1
- package/scripts/README.md +4 -4
- package/analysis/results/ama_sweep_results_lp_pool_133_1h.json +0 -2455
- package/analysis/results/bot_fitting_results_lp_pool_133_1h.json +0 -218
- package/analysis/tradingview/h-bts_tradingview.html +0 -1570
- package/analysis/tradingview/t-bts_tradingview.html +0 -1570
package/market_adapter/README.md
CHANGED
|
@@ -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
|
|
81
|
-
|
|
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
|
|
88
|
+
To opt newly generated entries into range scaling:
|
|
89
89
|
|
|
90
90
|
```bash
|
|
91
|
-
dexbot white --
|
|
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 --
|
|
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
|
-
|
|
|
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":
|
|
643
|
+
"asymmetricBounds": false
|
|
641
644
|
}
|
|
642
645
|
}
|
|
643
646
|
}
|
package/package.json
CHANGED
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
|
|
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
|
|
108
|
-
dexbot white --
|
|
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 --
|
|
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
|