@hummingbot/skills 1.0.0

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 (35) hide show
  1. package/README.md +63 -0
  2. package/package.json +28 -0
  3. package/skills/candles-feed/SKILL.md +259 -0
  4. package/skills/candles-feed/scripts/calculate_indicator.sh +359 -0
  5. package/skills/candles-feed/scripts/get_candles.sh +158 -0
  6. package/skills/candles-feed/scripts/get_funding_rate.sh +112 -0
  7. package/skills/candles-feed/scripts/get_price.sh +86 -0
  8. package/skills/candles-feed/scripts/list_candle_connectors.sh +47 -0
  9. package/skills/executor-creator/SKILL.md +212 -0
  10. package/skills/executor-creator/scripts/clear_position.sh +54 -0
  11. package/skills/executor-creator/scripts/create_executor.sh +92 -0
  12. package/skills/executor-creator/scripts/get_executor.sh +37 -0
  13. package/skills/executor-creator/scripts/get_executor_schema.sh +37 -0
  14. package/skills/executor-creator/scripts/get_executors_summary.sh +30 -0
  15. package/skills/executor-creator/scripts/get_position.sh +44 -0
  16. package/skills/executor-creator/scripts/get_positions.sh +30 -0
  17. package/skills/executor-creator/scripts/list_executor_types.sh +30 -0
  18. package/skills/executor-creator/scripts/list_executors.sh +52 -0
  19. package/skills/executor-creator/scripts/setup_executor.sh +197 -0
  20. package/skills/executor-creator/scripts/stop_executor.sh +54 -0
  21. package/skills/hummingbot-api-setup/SKILL.md +308 -0
  22. package/skills/hummingbot-api-setup/references/original_setup.sh +628 -0
  23. package/skills/hummingbot-api-setup/scripts/check_prerequisites.sh +92 -0
  24. package/skills/hummingbot-api-setup/scripts/deploy_full_stack.sh +151 -0
  25. package/skills/hummingbot-api-setup/scripts/health_check.sh +100 -0
  26. package/skills/hummingbot-api-setup/scripts/step1_detect_system.sh +88 -0
  27. package/skills/hummingbot-api-setup/scripts/step2_check_dependencies.sh +81 -0
  28. package/skills/keys-manager/SKILL.md +132 -0
  29. package/skills/keys-manager/scripts/add_credentials.sh +106 -0
  30. package/skills/keys-manager/scripts/get_connector_config.sh +67 -0
  31. package/skills/keys-manager/scripts/list_account_credentials.sh +82 -0
  32. package/skills/keys-manager/scripts/list_connectors.sh +64 -0
  33. package/skills/keys-manager/scripts/remove_credentials.sh +79 -0
  34. package/skills/keys-manager/scripts/setup_connector.sh +214 -0
  35. package/skills.json +137 -0
@@ -0,0 +1,308 @@
1
+ ---
2
+ name: hummingbot-api-setup
3
+ description: Deploy Hummingbot infrastructure including API server, Condor Telegram bot, PostgreSQL, and Gateway for DEX trading. Use this skill when the user wants to install, deploy, or set up Hummingbot.
4
+ license: Apache-2.0
5
+ ---
6
+
7
+ # Hummingbot Setup Skill
8
+
9
+ This skill handles the complete deployment and configuration of Hummingbot infrastructure. It provides step-by-step guidance through the installation process, based on the official [hummingbot/deploy](https://github.com/hummingbot/deploy) setup script.
10
+
11
+ ## Installation Overview
12
+
13
+ The Hummingbot stack consists of:
14
+
15
+ | Component | Description |
16
+ |-----------|-------------|
17
+ | **Condor** | Telegram bot interface for trading |
18
+ | **Hummingbot API** | REST API server for bot management |
19
+ | **PostgreSQL** | Database for configurations and history |
20
+ | **EMQX** | MQTT broker for real-time communication |
21
+ | **Gateway** | (Optional) DEX trading on Solana, Ethereum |
22
+
23
+ ## Progressive Installation Steps
24
+
25
+ Use these scripts to guide users through installation one step at a time:
26
+
27
+ ### Step 1: Check System Requirements
28
+
29
+ ```bash
30
+ ./scripts/step1_detect_system.sh
31
+ ```
32
+
33
+ Detects:
34
+ - Operating system (Linux, macOS)
35
+ - Architecture (amd64, arm64)
36
+ - Available disk space (needs 2GB+)
37
+
38
+ ### Step 2: Check Dependencies
39
+
40
+ ```bash
41
+ ./scripts/step2_check_dependencies.sh
42
+ ```
43
+
44
+ Checks for:
45
+ - git
46
+ - curl
47
+ - docker
48
+ - docker-compose (plugin or standalone)
49
+ - make
50
+
51
+ ### Step 3: Install Missing Dependencies
52
+
53
+ ```bash
54
+ ./scripts/step3_install_dependency.sh --dep docker
55
+ ./scripts/step3_install_dependency.sh --dep docker-compose
56
+ ./scripts/step3_install_dependency.sh --dep git
57
+ ./scripts/step3_install_dependency.sh --dep make
58
+ ```
59
+
60
+ Installs individual dependencies based on detected package manager.
61
+
62
+ ### Step 4: Check Docker Status
63
+
64
+ ```bash
65
+ ./scripts/step4_check_docker.sh
66
+ ```
67
+
68
+ Verifies:
69
+ - Docker daemon is running
70
+ - Docker Compose is available
71
+ - User has permissions
72
+
73
+ ### Step 5: Clone Repositories
74
+
75
+ ```bash
76
+ # Clone Condor (Telegram bot)
77
+ ./scripts/step5_clone_repo.sh --repo condor
78
+
79
+ # Clone Hummingbot API
80
+ ./scripts/step5_clone_repo.sh --repo api
81
+ ```
82
+
83
+ ### Step 6: Setup Components
84
+
85
+ ```bash
86
+ # Setup Condor environment
87
+ ./scripts/step6_setup_component.sh --component condor
88
+
89
+ # Setup Hummingbot API
90
+ ./scripts/step6_setup_component.sh --component api
91
+ ```
92
+
93
+ ### Step 7: Deploy Services
94
+
95
+ ```bash
96
+ # Deploy Condor
97
+ ./scripts/step7_deploy_component.sh --component condor
98
+
99
+ # Deploy Hummingbot API
100
+ ./scripts/step7_deploy_component.sh --component api
101
+ ```
102
+
103
+ ### Step 8: Verify Installation
104
+
105
+ ```bash
106
+ ./scripts/step8_verify_installation.sh
107
+ ```
108
+
109
+ Checks all services are running and healthy.
110
+
111
+ ## Quick Installation
112
+
113
+ For users who want to run everything at once:
114
+
115
+ ```bash
116
+ # Full installation (Condor + API)
117
+ ./scripts/deploy_full_stack.sh
118
+
119
+ # API only installation
120
+ ./scripts/deploy_full_stack.sh --api-only
121
+
122
+ # Upgrade existing installation
123
+ ./scripts/deploy_full_stack.sh --upgrade
124
+ ```
125
+
126
+ ## Workflow for Agent-Guided Installation
127
+
128
+ When helping a user install Hummingbot, follow this workflow:
129
+
130
+ ### 1. Initial Assessment
131
+
132
+ ```bash
133
+ ./scripts/step1_detect_system.sh
134
+ ```
135
+
136
+ Tell the user:
137
+ - Their detected OS and architecture
138
+ - Whether they have enough disk space
139
+ - What will be installed
140
+
141
+ ### 2. Dependency Check
142
+
143
+ ```bash
144
+ ./scripts/step2_check_dependencies.sh
145
+ ```
146
+
147
+ If dependencies are missing:
148
+ - List what's missing
149
+ - Explain each dependency's purpose
150
+ - Offer to install them
151
+
152
+ ### 3. Install Each Missing Dependency
153
+
154
+ For each missing dependency:
155
+ ```bash
156
+ ./scripts/step3_install_dependency.sh --dep <name>
157
+ ```
158
+
159
+ Explain:
160
+ - What's being installed
161
+ - Any permissions needed (sudo)
162
+ - Progress and completion
163
+
164
+ ### 4. Verify Docker
165
+
166
+ ```bash
167
+ ./scripts/step4_check_docker.sh
168
+ ```
169
+
170
+ If Docker isn't running:
171
+ - Explain how to start it
172
+ - On macOS: "Open Docker Desktop"
173
+ - On Linux: `sudo systemctl start docker`
174
+
175
+ ### 5. Choose Components
176
+
177
+ Ask the user:
178
+ - "Do you want Condor (Telegram bot interface)?" → Most users: Yes
179
+ - "Do you want Hummingbot API?" → Required for trading bots
180
+
181
+ ### 6. Clone and Setup
182
+
183
+ For each chosen component:
184
+ ```bash
185
+ ./scripts/step5_clone_repo.sh --repo <component>
186
+ ./scripts/step6_setup_component.sh --component <component>
187
+ ```
188
+
189
+ Explain:
190
+ - What's being downloaded
191
+ - Configuration being created
192
+ - Any prompts they need to answer
193
+
194
+ ### 7. Deploy
195
+
196
+ ```bash
197
+ ./scripts/step7_deploy_component.sh --component <component>
198
+ ```
199
+
200
+ This may take a few minutes as Docker images are pulled.
201
+
202
+ ### 8. Verify and Provide Next Steps
203
+
204
+ ```bash
205
+ ./scripts/step8_verify_installation.sh
206
+ ```
207
+
208
+ Tell the user:
209
+ - Services running and their URLs
210
+ - How to access Condor via Telegram
211
+ - How to view logs
212
+ - How to upgrade in the future
213
+
214
+ ## Component Details
215
+
216
+ ### Condor (Telegram Bot)
217
+
218
+ Repository: https://github.com/hummingbot/condor.git
219
+
220
+ After installation:
221
+ 1. Open Telegram
222
+ 2. Search for your bot (configured during setup)
223
+ 3. Use `/config` to add API servers
224
+ 4. Use `/start` to begin trading
225
+
226
+ ### Hummingbot API
227
+
228
+ Repository: https://github.com/hummingbot/hummingbot-api.git
229
+
230
+ After installation:
231
+ - API URL: http://localhost:8000
232
+ - Docs: http://localhost:8000/docs
233
+ - Default credentials: admin/admin
234
+
235
+ ### Gateway (Optional)
236
+
237
+ For DEX trading, Gateway provides blockchain connectivity:
238
+
239
+ ```bash
240
+ ./scripts/deploy_gateway.sh --chain solana --network mainnet-beta
241
+ ```
242
+
243
+ Supported chains:
244
+ - Solana (Jupiter, Raydium, Meteora)
245
+ - Ethereum (Uniswap, 0x)
246
+ - Various L2s (Arbitrum, Base, Optimism)
247
+
248
+ ## Troubleshooting
249
+
250
+ ### Docker Issues
251
+
252
+ **Docker not running (macOS):**
253
+ ```bash
254
+ open -a Docker
255
+ # Wait for Docker Desktop to start
256
+ ```
257
+
258
+ **Docker not running (Linux):**
259
+ ```bash
260
+ sudo systemctl start docker
261
+ sudo systemctl enable docker
262
+ ```
263
+
264
+ **Permission denied:**
265
+ ```bash
266
+ sudo usermod -aG docker $USER
267
+ # Log out and back in
268
+ ```
269
+
270
+ ### Installation Failures
271
+
272
+ **Clone failed:**
273
+ - Check internet connection
274
+ - Try: `git clone --depth 1 <repo>`
275
+
276
+ **Make setup failed:**
277
+ - Check for error messages
278
+ - Ensure all dependencies installed
279
+ - Try running manually: `cd <dir> && make setup`
280
+
281
+ **Deploy failed:**
282
+ - Check Docker is running
283
+ - Check disk space
284
+ - View logs: `docker compose logs`
285
+
286
+ ### Port Conflicts
287
+
288
+ | Port | Service | Solution |
289
+ |------|---------|----------|
290
+ | 8000 | API | `lsof -i :8000` then stop conflicting process |
291
+ | 5432 | PostgreSQL | Stop local PostgreSQL |
292
+ | 1883 | EMQX | Stop local MQTT broker |
293
+
294
+ ## Environment Variables
295
+
296
+ | Variable | Default | Description |
297
+ |----------|---------|-------------|
298
+ | `INSTALL_DIR` | `$HOME` | Installation directory |
299
+ | `API_REPO` | github.com/hummingbot/hummingbot-api | API repository URL |
300
+ | `CONDOR_REPO` | github.com/hummingbot/condor | Condor repository URL |
301
+
302
+ ## Reference
303
+
304
+ The original setup script is available at:
305
+ - `references/original_setup.sh`
306
+ - Source: https://github.com/hummingbot/deploy/blob/main/setup.sh
307
+
308
+ This skill breaks down that monolithic script into modular steps for better agent guidance.