dexbot 1.4.14 → 1.4.15
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/README.md +33 -48
- package/claw/data/positions.json +905 -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.d.ts.map +1 -1
- package/dist/dexbot.js +17 -1
- package/dist/dexbot.js.map +1 -1
- package/dist/modules/config.d.ts +3 -0
- package/dist/modules/config.d.ts.map +1 -1
- package/dist/modules/config.js +3 -0
- package/dist/modules/config.js.map +1 -1
- package/dist/modules/launcher/child_env.d.ts.map +1 -1
- package/dist/modules/launcher/child_env.js +3 -0
- package/dist/modules/launcher/child_env.js.map +1 -1
- package/dist/modules/paths.d.ts +43 -2
- package/dist/modules/paths.d.ts.map +1 -1
- package/dist/modules/paths.js +81 -21
- package/dist/modules/paths.js.map +1 -1
- package/package.json +2 -1
- package/scripts/README.md +20 -4
- package/scripts/clear-all.sh +39 -12
- package/scripts/clear-logs.sh +1 -1
- package/scripts/clear-market-adapter.sh +3 -3
- package/scripts/clear-orders.sh +1 -1
- package/scripts/create-bot-symlinks.sh +4 -2
- package/scripts/lib/dexbot-paths.sh +63 -0
- package/scripts/reset-settings.sh +1 -1
package/README.md
CHANGED
|
@@ -40,13 +40,6 @@ git clone https://github.com/froooze/DEXBot2.git && cd DEXBot2 && npm install &&
|
|
|
40
40
|
dexbot key # Set up master password and import keys
|
|
41
41
|
dexbot bot # Create and manage bot configurations
|
|
42
42
|
dexbot start # Start DEXBot2
|
|
43
|
-
|
|
44
|
-
# Option C — Clone + local (no global install, works on all platforms)
|
|
45
|
-
git clone https://github.com/froooze/DEXBot2.git && cd DEXBot2 && npm install
|
|
46
|
-
|
|
47
|
-
npx dexbot key # Set up master password and import keys
|
|
48
|
-
npx dexbot bot # Create and manage bot configurations
|
|
49
|
-
npx dexbot start # Start DEXBot2
|
|
50
43
|
```
|
|
51
44
|
|
|
52
45
|
Detailed setup: [Installation](#-installation).
|
|
@@ -65,12 +58,10 @@ New to BitShares? Work through the [BitShares Onboarding Tutorial](docs/BITSHARE
|
|
|
65
58
|
|
|
66
59
|
### Prerequisites
|
|
67
60
|
|
|
68
|
-
You'll need **Git** and **Node.js** installed.
|
|
61
|
+
You'll need **Git** and **Node.js** v22.12 or newer installed.
|
|
69
62
|
|
|
70
63
|
#### Linux Users
|
|
71
64
|
|
|
72
|
-
DEXBot needs Node.js v22.12 or newer. Most distro repos ship an outdated `nodejs` package, so install Node from [nodejs.org](https://nodejs.org/en/download).
|
|
73
|
-
|
|
74
65
|
Install Git:
|
|
75
66
|
|
|
76
67
|
```bash
|
|
@@ -82,7 +73,7 @@ sudo apt-get install git
|
|
|
82
73
|
sudo dnf install git
|
|
83
74
|
```
|
|
84
75
|
|
|
85
|
-
|
|
76
|
+
Most distro repos ship an outdated `nodejs` package, so install Node from [nodejs.org](https://nodejs.org/en/download).
|
|
86
77
|
|
|
87
78
|
```bash
|
|
88
79
|
# e.g. via nvm (from https://nodejs.org/en/download)
|
|
@@ -99,8 +90,6 @@ node --version && npm --version && git --version
|
|
|
99
90
|
|
|
100
91
|
#### macOS Users
|
|
101
92
|
|
|
102
|
-
DEXBot needs Node.js v22.12 or newer.
|
|
103
|
-
|
|
104
93
|
Use Homebrew to install Node.js and Git:
|
|
105
94
|
```bash
|
|
106
95
|
# Install Homebrew if not already installed
|
|
@@ -112,8 +101,6 @@ brew install node git
|
|
|
112
101
|
|
|
113
102
|
#### Windows Users
|
|
114
103
|
|
|
115
|
-
DEXBot needs Node.js v22.12 or newer.
|
|
116
|
-
|
|
117
104
|
1. Install **Git** from [git-scm.com](https://git-scm.com/install/windows) (accept defaults, restart after)
|
|
118
105
|
2. Install **Node.js LTS** from [nodejs.org](https://nodejs.org/en/download) (accept defaults, restart after)
|
|
119
106
|
3. Verify installation in Command Prompt:
|
|
@@ -130,49 +117,44 @@ npm i -g dexbot
|
|
|
130
117
|
|
|
131
118
|
# Option B — Clone + npm link
|
|
132
119
|
git clone https://github.com/froooze/DEXBot2.git && cd DEXBot2 && npm install && npm link
|
|
133
|
-
|
|
134
|
-
# Option C — Clone + local (no global install, works on all platforms)
|
|
135
|
-
git clone https://github.com/froooze/DEXBot2.git && cd DEXBot2 && npm install
|
|
136
|
-
npx dexbot
|
|
137
|
-
npx dexbot start
|
|
138
120
|
```
|
|
139
121
|
|
|
140
|
-
|
|
122
|
+
## 🔧 Configuration
|
|
141
123
|
|
|
142
|
-
|
|
143
|
-
dexbot key
|
|
144
|
-
dexbot bot
|
|
145
|
-
```
|
|
124
|
+
### Create Your Bot
|
|
146
125
|
|
|
147
|
-
|
|
126
|
+
1. Set up your master password and import your BitShares **active** key (WIF):
|
|
148
127
|
|
|
149
|
-
|
|
128
|
+
```bash
|
|
129
|
+
dexbot key
|
|
130
|
+
```
|
|
150
131
|
|
|
151
|
-
|
|
132
|
+
2. Create a bot through the interactive prompts:
|
|
152
133
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
4. `minPrice` / `maxPrice`
|
|
134
|
+
```bash
|
|
135
|
+
dexbot bot
|
|
136
|
+
```
|
|
157
137
|
|
|
158
|
-
|
|
159
|
-
|
|
138
|
+
This stores your configuration in `profiles/bots.json`. The generated
|
|
139
|
+
defaults are a good starting point — the next step walks through the few
|
|
140
|
+
options worth tuning.
|
|
160
141
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
142
|
+
### Recommended Bot Setup
|
|
143
|
+
|
|
144
|
+
Keep the default settings first, and tune these:
|
|
164
145
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
market volatility instead of using an unnecessarily wide range.
|
|
146
|
+
1. **Tune `targetSpreadPercent`** — controls profit room per completed cycle. A
|
|
147
|
+
wider spread targets more profit per cycle but trades less often.
|
|
168
148
|
|
|
169
|
-
|
|
149
|
+
2. **Tune `incrementPercent`** — controls grid density and order size. Smaller
|
|
150
|
+
increments create more grid levels and smaller orders; larger increments
|
|
151
|
+
create fewer levels and larger orders.
|
|
170
152
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
153
|
+
3. **Set `gridPrice` to `"ama"`** — so the market adapter can center the grid
|
|
154
|
+
on AMA. Pick a specific preset if desired: `"ama1"` is the fastest,
|
|
155
|
+
`"ama4"` the slowest, and `"ama"` uses the pair's default preset.
|
|
156
|
+
|
|
157
|
+
4. **Generate the market-adapter whitelist:**
|
|
176
158
|
|
|
177
159
|
```bash
|
|
178
160
|
dexbot white
|
|
@@ -182,8 +164,11 @@ market volatility instead of using an unnecessarily wide range.
|
|
|
182
164
|
live writes and range scaling. Use `dexbot white --dynamic-weight` for
|
|
183
165
|
newly generated dynamic-weight entries; existing entries are preserved.
|
|
184
166
|
|
|
185
|
-
|
|
186
|
-
|
|
167
|
+
5. **Start DEXBot2** with `dexbot start`.
|
|
168
|
+
|
|
169
|
+
6. **Tune `minPrice` / `maxPrice`** around the market's volatility range. Once
|
|
170
|
+
AMA is active, tighten them around the maximum expected market volatility
|
|
171
|
+
instead of using an unnecessarily wide range.
|
|
187
172
|
|
|
188
173
|
### Bot Options Reference
|
|
189
174
|
|