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 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
- Then install Node.js via nvm:
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
- Then set up your master password, keys and add bots:
122
+ ## 🔧 Configuration
141
123
 
142
- ```bash
143
- dexbot key
144
- dexbot bot
145
- ```
124
+ ### Create Your Bot
146
125
 
147
- ## 🔧 Configuration
126
+ 1. Set up your master password and import your BitShares **active** key (WIF):
148
127
 
149
- ### Recommended Bot Setup
128
+ ```bash
129
+ dexbot key
130
+ ```
150
131
 
151
- Keep the generated defaults and tune only these first:
132
+ 2. Create a bot through the interactive prompts:
152
133
 
153
- 1. `targetSpreadPercent`
154
- 2. `incrementPercent`
155
- 3. `gridPrice: "ama"`
156
- 4. `minPrice` / `maxPrice`
134
+ ```bash
135
+ dexbot bot
136
+ ```
157
137
 
158
- `targetSpreadPercent` controls profit room per completed cycle. A wider spread
159
- targets more profit per cycle but trades less often.
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
- `incrementPercent` controls grid density and order size. Smaller increments
162
- create more grid levels and smaller orders; larger increments create fewer
163
- levels and larger orders.
142
+ ### Recommended Bot Setup
143
+
144
+ Keep the default settings first, and tune these:
164
145
 
165
- Use `gridPrice: "ama"` so the market adapter can center the grid on AMA. Once
166
- AMA is active, tighten `minPrice` / `maxPrice` around the maximum expected
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
- ### Simple AMA Workflow
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
- 1. Create the bot with `dexbot bot`.
172
- 2. Leave defaults unchanged.
173
- 3. Tune `targetSpreadPercent` and `incrementPercent`.
174
- 4. Set `gridPrice` to `ama`.
175
- 5. Generate the market-adapter whitelist:
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
- 6. Start DEXBot2 with `dexbot start` (or `dexbot pm2` for PM2).
186
- 7. Then tune `minPrice` / `maxPrice` for the market's volatility range.
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