dexbot 1.6.2 → 1.6.3

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 (40) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/analysis/README.md +2 -2
  3. package/analysis/ama_fitting/package.json +1 -1
  4. package/analysis/grid_correction_check.ts +80 -7
  5. package/analysis/results/ama_sweep_results_lp_pool_133_1h.json +2455 -0
  6. package/analysis/results/bot_fitting_results_lp_pool_133_1h.json +218 -0
  7. package/analysis/tradingview/h-bts_tradingview.html +1570 -0
  8. package/analysis/tradingview/t-bts_tradingview.html +1570 -0
  9. package/analysis/trend_detection/package.json +1 -1
  10. package/claw/package.json +1 -1
  11. package/claw/runtimes/openclaw-plugin/openclaw.plugin.json +1 -1
  12. package/claw/runtimes/openclaw-plugin/package.json +1 -1
  13. package/claw/tests/test_claw_mcp_transport.ts +2 -2
  14. package/dist/analysis/grid_correction_check.d.ts +5 -1
  15. package/dist/analysis/grid_correction_check.d.ts.map +1 -1
  16. package/dist/analysis/grid_correction_check.js +81 -7
  17. package/dist/analysis/grid_correction_check.js.map +1 -1
  18. package/dist/modules/dexbot_class.d.ts +1 -1
  19. package/dist/modules/dexbot_cow_runtime.d.ts +81 -2
  20. package/dist/modules/dexbot_cow_runtime.d.ts.map +1 -1
  21. package/dist/modules/dexbot_cow_runtime.js +482 -8
  22. package/dist/modules/dexbot_cow_runtime.js.map +1 -1
  23. package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -1
  24. package/dist/modules/dexbot_maintenance_runtime.js +6 -1
  25. package/dist/modules/dexbot_maintenance_runtime.js.map +1 -1
  26. package/dist/modules/order/manager.d.ts.map +1 -1
  27. package/dist/modules/order/manager.js +3 -1
  28. package/dist/modules/order/manager.js.map +1 -1
  29. package/dist/modules/order/sync_engine.d.ts.map +1 -1
  30. package/dist/modules/order/sync_engine.js +17 -5
  31. package/dist/modules/order/sync_engine.js.map +1 -1
  32. package/dist/modules/order/utils/order.d.ts +45 -7
  33. package/dist/modules/order/utils/order.d.ts.map +1 -1
  34. package/dist/modules/order/utils/order.js +160 -15
  35. package/dist/modules/order/utils/order.js.map +1 -1
  36. package/docs/DEXBOT_COMPARISON.md +3 -3
  37. package/docs/EVOLUTION.md +8 -7
  38. package/docs/FUND_MOVEMENT_AND_ACCOUNTING.md +1 -1
  39. package/docs/README.md +1 -1
  40. package/package.json +1 -1
@@ -0,0 +1,218 @@
1
+ {
2
+ "meta": {
3
+ "generatedAt": "2026-08-26T15:40:53.423Z",
4
+ "dataPath": "market_adapter/data/lp/1_3_5537_1_3_0/lp_pool_133_1h.json",
5
+ "resultsPath": "analysis/ama_fitting/optimization_results_lp_pool_133_1h.json",
6
+ "candles": 26281,
7
+ "activeOrders": "all",
8
+ "feeRoundtripPct": 0.2,
9
+ "btsCreateFee": 0.4826,
10
+ "btsCancelFee": 0.00482,
11
+ "makerCreateFactor": 0.1,
12
+ "txFeePrice": 1,
13
+ "btsFeeCapital": 10000,
14
+ "search": {
15
+ "spreadValues": [
16
+ 2,
17
+ 4
18
+ ],
19
+ "incrementValues": [
20
+ 0.5,
21
+ 1
22
+ ],
23
+ "ratioValues": [
24
+ 2,
25
+ 3
26
+ ],
27
+ "minSpreadFactor": 2.1,
28
+ "repositionPct": 1,
29
+ "asymmetricBounds": false,
30
+ "combosPerAma": 8
31
+ },
32
+ "scoring": {
33
+ "baseScore": "totalNetCaptureAfterFeesPct * (fillEfficiency / 100)",
34
+ "gridModel": "persistent fixed chain prices (createOrderGrid port): master rail at sqrt(1±inc) offsets bounded by [center/ratio, center*ratio], gapSlots spread zone centered on center; prices never follow AMA after placement",
35
+ "spreadParam": "targetSpreadPercent for calculateGapSlots (floored at increment * MIN_SPREAD_FACTOR)",
36
+ "resetTriggers": "(A) AMA drift >= 1% from recorded center (ratchet) (trigger B gated off — asymmetricBounds whitelist)",
37
+ "gridPriceOffset": "disabled (asymmetricBounds whitelist)",
38
+ "repositionAccounting": "unfilled orders canceled + counted (incl armed refills/rebids); bought-and-held base carries across resets in a weighted-average-entry inventory pool (resync never market-sells); end-of-run inventory mark is informational and excluded from scoring",
39
+ "cycleEconomics": "slot rotation: filled buy re-offers one rail step up; that refill selling books ~increment% minus round-trip fee and the freed quote re-bids one step down; unlinked initial-grid sells only execute against held inventory at weighted-average entry (no shorting)",
40
+ "totalGrossCapturePct": "sum of realized per-rotation gross from actual fixed prices (linked rotations + inventory sales)",
41
+ "totalNetCapturePct": "realized gross - roundtrip fee per completed disposition; excludes the end-of-run inventory mark",
42
+ "btsFees": "every order placement (initial grid + armed refills/rebids) pays maker create (0.4826*0.1 BTS), every reset cancel pays 0.00482 BTS; btsFeePts = total BTS * txFeePrice / btsFeeCapital * 100 deducted from net before scoring",
43
+ "warmup": "getAmaWarmupBars(er, slow, 0, fast)",
44
+ "riskPenalty": "avgOpenDurationBars*1 + peakOpenOrders*2 + avgImbalance*1.2 + canceledOnReposition*0.15",
45
+ "finalScore": "baseScore - riskPenalty"
46
+ }
47
+ },
48
+ "results": [
49
+ {
50
+ "strategy": {
51
+ "id": "AMA1",
52
+ "name": "AMA1",
53
+ "er": 500,
54
+ "fast": 2,
55
+ "slow": 50
56
+ },
57
+ "best": {
58
+ "spreadPct": 4,
59
+ "incrementPct": 0.01,
60
+ "maxMinRatio": 2,
61
+ "touchedOrders": 17118,
62
+ "matchedPairs": 4463,
63
+ "cyclesTotal": 4463,
64
+ "rotationCount": 1911,
65
+ "inventorySaleCount": 2552,
66
+ "avgCyclesPerSlot": 32.81617647058823,
67
+ "fillEfficiency": 26.071971024652413,
68
+ "totalGrossCapturePct": 74380.64032509834,
69
+ "totalNetCapturePct": 73488.04032508115,
70
+ "btsFeePts": 73.45986739997919,
71
+ "btsFeesBts": 7345.986739997918,
72
+ "totalNetCaptureAfterFeesPct": 73414.58045768116,
73
+ "avgNetPerPair": 16.46606325903678,
74
+ "canceledOnReposition": 129640,
75
+ "repositionCount": 972,
76
+ "driftTriggerCount": 972,
77
+ "slopeTriggerCount": 0,
78
+ "inventoryUnits": 567,
79
+ "inventoryAvgEntry": 1480.717680275907,
80
+ "inventoryNetPts": -8250.559317877065,
81
+ "offsetAppliedCount": 0,
82
+ "avgOpenDurationBars": 7.108843537414966,
83
+ "peakOpenOrders": 136,
84
+ "avgImbalance": 4.6666405484818805,
85
+ "riskPenalty": 19730.708812195593,
86
+ "baseScore": 19140.628144796767,
87
+ "utilization": 67.06103580662854,
88
+ "score": -590.0806673988263
89
+ }
90
+ },
91
+ {
92
+ "strategy": {
93
+ "id": "AMA2",
94
+ "name": "AMA2",
95
+ "er": 500,
96
+ "fast": 2,
97
+ "slow": 50
98
+ },
99
+ "best": {
100
+ "spreadPct": 4,
101
+ "incrementPct": 0.01,
102
+ "maxMinRatio": 2,
103
+ "touchedOrders": 17118,
104
+ "matchedPairs": 4463,
105
+ "cyclesTotal": 4463,
106
+ "rotationCount": 1911,
107
+ "inventorySaleCount": 2552,
108
+ "avgCyclesPerSlot": 32.81617647058823,
109
+ "fillEfficiency": 26.071971024652413,
110
+ "totalGrossCapturePct": 74380.64032509834,
111
+ "totalNetCapturePct": 73488.04032508115,
112
+ "btsFeePts": 73.45986739997919,
113
+ "btsFeesBts": 7345.986739997918,
114
+ "totalNetCaptureAfterFeesPct": 73414.58045768116,
115
+ "avgNetPerPair": 16.46606325903678,
116
+ "canceledOnReposition": 129640,
117
+ "repositionCount": 972,
118
+ "driftTriggerCount": 972,
119
+ "slopeTriggerCount": 0,
120
+ "inventoryUnits": 567,
121
+ "inventoryAvgEntry": 1480.717680275907,
122
+ "inventoryNetPts": -8250.559317877065,
123
+ "offsetAppliedCount": 0,
124
+ "avgOpenDurationBars": 7.108843537414966,
125
+ "peakOpenOrders": 136,
126
+ "avgImbalance": 4.6666405484818805,
127
+ "riskPenalty": 19730.708812195593,
128
+ "baseScore": 19140.628144796767,
129
+ "utilization": 67.06103580662854,
130
+ "score": -590.0806673988263
131
+ }
132
+ },
133
+ {
134
+ "strategy": {
135
+ "id": "AMA3",
136
+ "name": "AMA3",
137
+ "er": 500,
138
+ "fast": 2,
139
+ "slow": 50
140
+ },
141
+ "best": {
142
+ "spreadPct": 4,
143
+ "incrementPct": 0.01,
144
+ "maxMinRatio": 2,
145
+ "touchedOrders": 17118,
146
+ "matchedPairs": 4463,
147
+ "cyclesTotal": 4463,
148
+ "rotationCount": 1911,
149
+ "inventorySaleCount": 2552,
150
+ "avgCyclesPerSlot": 32.81617647058823,
151
+ "fillEfficiency": 26.071971024652413,
152
+ "totalGrossCapturePct": 74380.64032509834,
153
+ "totalNetCapturePct": 73488.04032508115,
154
+ "btsFeePts": 73.45986739997919,
155
+ "btsFeesBts": 7345.986739997918,
156
+ "totalNetCaptureAfterFeesPct": 73414.58045768116,
157
+ "avgNetPerPair": 16.46606325903678,
158
+ "canceledOnReposition": 129640,
159
+ "repositionCount": 972,
160
+ "driftTriggerCount": 972,
161
+ "slopeTriggerCount": 0,
162
+ "inventoryUnits": 567,
163
+ "inventoryAvgEntry": 1480.717680275907,
164
+ "inventoryNetPts": -8250.559317877065,
165
+ "offsetAppliedCount": 0,
166
+ "avgOpenDurationBars": 7.108843537414966,
167
+ "peakOpenOrders": 136,
168
+ "avgImbalance": 4.6666405484818805,
169
+ "riskPenalty": 19730.708812195593,
170
+ "baseScore": 19140.628144796767,
171
+ "utilization": 67.06103580662854,
172
+ "score": -590.0806673988263
173
+ }
174
+ },
175
+ {
176
+ "strategy": {
177
+ "id": "AMA4",
178
+ "name": "AMA4",
179
+ "er": 500,
180
+ "fast": 2,
181
+ "slow": 50
182
+ },
183
+ "best": {
184
+ "spreadPct": 4,
185
+ "incrementPct": 0.01,
186
+ "maxMinRatio": 2,
187
+ "touchedOrders": 17118,
188
+ "matchedPairs": 4463,
189
+ "cyclesTotal": 4463,
190
+ "rotationCount": 1911,
191
+ "inventorySaleCount": 2552,
192
+ "avgCyclesPerSlot": 32.81617647058823,
193
+ "fillEfficiency": 26.071971024652413,
194
+ "totalGrossCapturePct": 74380.64032509834,
195
+ "totalNetCapturePct": 73488.04032508115,
196
+ "btsFeePts": 73.45986739997919,
197
+ "btsFeesBts": 7345.986739997918,
198
+ "totalNetCaptureAfterFeesPct": 73414.58045768116,
199
+ "avgNetPerPair": 16.46606325903678,
200
+ "canceledOnReposition": 129640,
201
+ "repositionCount": 972,
202
+ "driftTriggerCount": 972,
203
+ "slopeTriggerCount": 0,
204
+ "inventoryUnits": 567,
205
+ "inventoryAvgEntry": 1480.717680275907,
206
+ "inventoryNetPts": -8250.559317877065,
207
+ "offsetAppliedCount": 0,
208
+ "avgOpenDurationBars": 7.108843537414966,
209
+ "peakOpenOrders": 136,
210
+ "avgImbalance": 4.6666405484818805,
211
+ "riskPenalty": 19730.708812195593,
212
+ "baseScore": 19140.628144796767,
213
+ "utilization": 67.06103580662854,
214
+ "score": -590.0806673988263
215
+ }
216
+ }
217
+ ]
218
+ }