hedgequantx 2.5.24 → 2.5.26
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 +87 -14
- package/package.json +1 -1
- package/src/menus/ai-agent.js +161 -250
- package/src/services/ai/client.js +3 -2
- package/src/services/ai/index.js +10 -40
- package/src/services/ai/providers/index.js +3 -12
- package/src/services/ai/token-scanner.js +0 -1414
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
### Prop Futures Algo Trading CLI
|
|
8
8
|
|
|
9
|
-
*Connect to
|
|
9
|
+
*Connect to 38+ prop firms and automate your futures trading with AI supervision*
|
|
10
10
|
|
|
11
11
|
[](https://hedgequantx.com)
|
|
12
12
|
[](https://www.npmjs.com/package/hedgequantx)
|
|
@@ -21,10 +21,11 @@
|
|
|
21
21
|
|
|
22
22
|
[](https://hedgequantx.com)
|
|
23
23
|
[](https://hedgequantx.com)
|
|
24
|
-
[](https://hedgequantx.com)
|
|
25
|
+
[](https://hedgequantx.com)
|
|
25
26
|
[](https://hedgequantx.com)
|
|
26
27
|
|
|
27
|
-
[Website](https://hedgequantx.com) | [Installation](#installation) | [Features](#features) | [Algo Trading](#algo-trading) | [Discord](https://discord.gg/UBKCERctZu)
|
|
28
|
+
[Website](https://hedgequantx.com) | [Installation](#installation) | [Features](#features) | [AI Integration](#ai-integration) | [Algo Trading](#algo-trading) | [Discord](https://discord.gg/UBKCERctZu)
|
|
28
29
|
|
|
29
30
|
</div>
|
|
30
31
|
|
|
@@ -34,12 +35,13 @@
|
|
|
34
35
|
|
|
35
36
|
| Feature | Description |
|
|
36
37
|
|---------|-------------|
|
|
37
|
-
| **Multi-Platform** | ProjectX &
|
|
38
|
-
| **
|
|
38
|
+
| **Multi-Platform** | ProjectX, Rithmic & Tradovate APIs |
|
|
39
|
+
| **38+ Prop Firms** | TopStep, Apex, Bulenox, and more |
|
|
39
40
|
| **Multi-Account** | Connect multiple accounts simultaneously |
|
|
40
41
|
| **Real-Time Stats** | Balance, P&L, positions, orders |
|
|
41
42
|
| **Algo Trading** | One Account & Copy Trading modes |
|
|
42
|
-
| **
|
|
43
|
+
| **AI Supervision** | Claude, GPT, Gemini, and 15+ providers |
|
|
44
|
+
| **Claude Pro/Max OAuth** | Login with your Claude subscription |
|
|
43
45
|
| **Market Hours** | Auto-blocks when market closed |
|
|
44
46
|
| **Local Execution** | Direct API trading, no server needed |
|
|
45
47
|
| **Secure Storage** | AES-256-GCM encrypted sessions |
|
|
@@ -95,6 +97,55 @@ hqx --version
|
|
|
95
97
|
|
|
96
98
|
---
|
|
97
99
|
|
|
100
|
+
## AI Integration
|
|
101
|
+
|
|
102
|
+
HedgeQuantX integrates with leading AI providers for intelligent trading supervision.
|
|
103
|
+
|
|
104
|
+
### Supported AI Providers
|
|
105
|
+
|
|
106
|
+
| Provider | Authentication | Models |
|
|
107
|
+
|----------|---------------|--------|
|
|
108
|
+
| **Anthropic Claude** | OAuth (Pro/Max) or API Key | Claude 4, Sonnet, Haiku, Opus |
|
|
109
|
+
| **OpenAI** | API Key | GPT-4o, GPT-4, GPT-3.5 |
|
|
110
|
+
| **Google Gemini** | API Key | Gemini Pro, Gemini Flash |
|
|
111
|
+
| **OpenRouter** | API Key | 100+ models (unified API) |
|
|
112
|
+
| **DeepSeek** | API Key | DeepSeek Chat, Coder |
|
|
113
|
+
| **Groq** | API Key | Llama, Mixtral (fast inference) |
|
|
114
|
+
| **xAI** | API Key | Grok |
|
|
115
|
+
| **Mistral** | API Key | Mistral Large, Medium, Small |
|
|
116
|
+
| **Perplexity** | API Key | Sonar models |
|
|
117
|
+
| **Together AI** | API Key | Open source models |
|
|
118
|
+
| **Ollama** | Local | Any local model |
|
|
119
|
+
| **LM Studio** | Local | Any local model |
|
|
120
|
+
|
|
121
|
+
### Claude Pro/Max OAuth Login
|
|
122
|
+
|
|
123
|
+
If you have a Claude Pro or Max subscription, you can login directly without an API key:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
1. AI Agent Menu -> [+] Add Agent
|
|
127
|
+
2. Select DIRECT PROVIDERS -> CLAUDE (ANTHROPIC)
|
|
128
|
+
3. Choose "CLAUDE PRO/MAX (OAUTH)"
|
|
129
|
+
4. Browser opens -> Login to claude.ai
|
|
130
|
+
5. Copy the authorization code
|
|
131
|
+
6. Paste in terminal -> Connected!
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Benefits:
|
|
135
|
+
- No API key needed
|
|
136
|
+
- Use your existing subscription
|
|
137
|
+
- Unlimited usage with your plan
|
|
138
|
+
- Tokens auto-refresh
|
|
139
|
+
|
|
140
|
+
### AI Features
|
|
141
|
+
|
|
142
|
+
- **Trading Analysis**: Real-time position and risk analysis
|
|
143
|
+
- **Multi-Agent Support**: Connect multiple AI providers simultaneously
|
|
144
|
+
- **Auto Token Scanner**: Detects existing AI sessions from VS Code, Cursor, Claude CLI
|
|
145
|
+
- **Token Auto-Refresh**: OAuth tokens refresh automatically when expired
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
98
149
|
## Algo Trading
|
|
99
150
|
|
|
100
151
|
### One Account Mode
|
|
@@ -107,12 +158,18 @@ Trade on a single account with HQX algo strategy.
|
|
|
107
158
|
|
|
108
159
|
### Copy Trading Mode
|
|
109
160
|
|
|
110
|
-
Mirror trades from Lead to Follower accounts.
|
|
161
|
+
Mirror trades from Lead to Follower accounts with real execution.
|
|
111
162
|
|
|
112
163
|
<div align="center">
|
|
113
164
|
<img src="assets/copy-trading.png" alt="HQX Copy Trading" width="800">
|
|
114
165
|
</div>
|
|
115
166
|
|
|
167
|
+
Features:
|
|
168
|
+
- Real order execution via API
|
|
169
|
+
- Position synchronization
|
|
170
|
+
- Multi-account support
|
|
171
|
+
- Configurable lot multiplier
|
|
172
|
+
|
|
116
173
|
---
|
|
117
174
|
|
|
118
175
|
## Supported Prop Firms
|
|
@@ -151,13 +208,27 @@ Mirror trades from Lead to Follower accounts.
|
|
|
151
208
|
| Rate Limiting | API protection |
|
|
152
209
|
| File Permissions | 0600 (owner only) |
|
|
153
210
|
| Credentials | Never stored in plain text |
|
|
211
|
+
| OAuth Tokens | Secure PKCE flow |
|
|
154
212
|
|
|
155
213
|
---
|
|
156
214
|
|
|
157
215
|
## Changelog
|
|
158
216
|
|
|
159
217
|
<details>
|
|
160
|
-
<summary><b>
|
|
218
|
+
<summary><b>v2.5.x (Current)</b></summary>
|
|
219
|
+
|
|
220
|
+
- **AI Integration**: Multi-provider AI supervision
|
|
221
|
+
- **Claude OAuth**: Login with Pro/Max subscription (no API key needed)
|
|
222
|
+
- **Token Scanner**: Auto-detect AI sessions from VS Code, Cursor, Claude CLI
|
|
223
|
+
- **Real API Models**: Fetch models from provider APIs (no hardcoded lists)
|
|
224
|
+
- **Copy Trading**: Real order execution via API
|
|
225
|
+
- **Multi-Agent**: Connect multiple AI providers simultaneously
|
|
226
|
+
- **Auto Token Refresh**: OAuth tokens refresh automatically
|
|
227
|
+
|
|
228
|
+
</details>
|
|
229
|
+
|
|
230
|
+
<details>
|
|
231
|
+
<summary><b>v1.8.x</b></summary>
|
|
161
232
|
|
|
162
233
|
- Separate UI for One Account and Copy Trading
|
|
163
234
|
- Market hours validation
|
|
@@ -194,12 +265,14 @@ Mirror trades from Lead to Follower accounts.
|
|
|
194
265
|
|
|
195
266
|
| Done | Done | Coming Soon |
|
|
196
267
|
|------|------|-------------|
|
|
197
|
-
| :white_check_mark: ProjectX integration | :white_check_mark: One Account mode | :hourglass:
|
|
198
|
-
| :white_check_mark: Rithmic integration | :white_check_mark: Copy Trading mode | :hourglass:
|
|
199
|
-
| :white_check_mark: 38+ prop firms | :white_check_mark: HQX Server | :hourglass:
|
|
200
|
-
| :white_check_mark: Multi-account | :white_check_mark: Market hours check | :hourglass:
|
|
201
|
-
| :white_check_mark: Trailing SL & BE | :white_check_mark: Session summary | :hourglass:
|
|
202
|
-
| :white_check_mark: Encrypted sessions | :white_check_mark: Auto-update | :hourglass:
|
|
268
|
+
| :white_check_mark: ProjectX integration | :white_check_mark: One Account mode | :hourglass: Telegram alerts |
|
|
269
|
+
| :white_check_mark: Rithmic integration | :white_check_mark: Copy Trading mode | :hourglass: Multi-symbol trading |
|
|
270
|
+
| :white_check_mark: 38+ prop firms | :white_check_mark: HQX Server | :hourglass: Performance analytics |
|
|
271
|
+
| :white_check_mark: Multi-account | :white_check_mark: Market hours check | :hourglass: Trade journal export |
|
|
272
|
+
| :white_check_mark: Trailing SL & BE | :white_check_mark: Session summary | :hourglass: Web dashboard |
|
|
273
|
+
| :white_check_mark: Encrypted sessions | :white_check_mark: Auto-update | :hourglass: Advanced AI strategies |
|
|
274
|
+
| :white_check_mark: AI Integration | :white_check_mark: Claude OAuth | :hourglass: Voice commands |
|
|
275
|
+
| :white_check_mark: Multi-AI Agents | :white_check_mark: Token Scanner | |
|
|
203
276
|
|
|
204
277
|
---
|
|
205
278
|
|