hedgequantx 1.1.1
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 +247 -0
- package/bin/cli.js +2096 -0
- package/package.json +52 -0
- package/src/api/projectx_gatewayapi.json +1766 -0
- package/src/api/projectx_userapi.json +641 -0
- package/src/config/constants.js +75 -0
- package/src/config/index.js +24 -0
- package/src/config/propfirms.js +56 -0
- package/src/pages/index.js +9 -0
- package/src/pages/stats.js +289 -0
- package/src/services/hqx-server.js +351 -0
- package/src/services/index.js +12 -0
- package/src/services/local-storage.js +309 -0
- package/src/services/projectx.js +369 -0
- package/src/services/session.js +143 -0
- package/src/ui/box.js +105 -0
- package/src/ui/device.js +85 -0
- package/src/ui/index.js +48 -0
- package/src/ui/table.js +81 -0
package/README.md
ADDED
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# HedgeQuantX CLI
|
|
2
|
+
|
|
3
|
+
**Prop Futures Algo Trading CLI**
|
|
4
|
+
|
|
5
|
+
A powerful command-line interface for connecting to prop trading firms and managing your futures trading accounts.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- Multi-platform connection support (ProjectX, Rithmic, Tradovate)
|
|
12
|
+
- 19+ supported prop firms via ProjectX
|
|
13
|
+
- Real-time account management
|
|
14
|
+
- View positions, orders, and account stats
|
|
15
|
+
- Secure authentication
|
|
16
|
+
|
|
17
|
+
## Supported Prop Firms (ProjectX)
|
|
18
|
+
|
|
19
|
+
| Firm | Status |
|
|
20
|
+
|------|--------|
|
|
21
|
+
| Topstep | Active |
|
|
22
|
+
| Alpha Futures | Active |
|
|
23
|
+
| TickTickTrader | Active |
|
|
24
|
+
| Bulenox | Active |
|
|
25
|
+
| TradeDay | Active |
|
|
26
|
+
| Blusky | Active |
|
|
27
|
+
| Goat Futures | Active |
|
|
28
|
+
| The Futures Desk | Active |
|
|
29
|
+
| DayTraders | Active |
|
|
30
|
+
| E8 Futures | Active |
|
|
31
|
+
| Blue Guardian Futures | Active |
|
|
32
|
+
| FuturesElite | Active |
|
|
33
|
+
| FXIFY | Active |
|
|
34
|
+
| Hola Prime | Active |
|
|
35
|
+
| Top One Futures | Active |
|
|
36
|
+
| Funding Futures | Active |
|
|
37
|
+
| TX3 Funding | Active |
|
|
38
|
+
| Lucid Trading | Active |
|
|
39
|
+
| Tradeify | Active |
|
|
40
|
+
| Earn2Trade | Coming Soon |
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Installation
|
|
45
|
+
|
|
46
|
+
### Prerequisites
|
|
47
|
+
|
|
48
|
+
- Node.js >= 16.x
|
|
49
|
+
- npm >= 8.x
|
|
50
|
+
|
|
51
|
+
### Option 1: Install from GitHub
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npm install -g github:HedgeQuantX/HQX-CLI
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Option 2: Clone and Install (Recommended)
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
git clone https://github.com/HedgeQuantX/HQX-CLI.git
|
|
61
|
+
cd HQX-CLI
|
|
62
|
+
npm install
|
|
63
|
+
npm link
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Update
|
|
69
|
+
|
|
70
|
+
To update the CLI to the latest version:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
cd ~/HQX-CLI && git pull
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
That's it! Changes are applied immediately. No need to reinstall.
|
|
77
|
+
|
|
78
|
+
### Option 3: Download and Install
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# Download the package
|
|
82
|
+
curl -L -o hedgequantx.tgz https://github.com/HedgeQuantX/HQX-CLI/releases/latest/download/hedgequantx-1.0.0.tgz
|
|
83
|
+
|
|
84
|
+
# Install globally
|
|
85
|
+
npm install -g hedgequantx.tgz
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Usage
|
|
91
|
+
|
|
92
|
+
### Launch the CLI
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
hedgequantx
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### CLI Commands
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
hedgequantx --version # Show version
|
|
102
|
+
hedgequantx --help # Show help
|
|
103
|
+
hedgequantx status # Show system status
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Quick Start
|
|
109
|
+
|
|
110
|
+
1. **Launch the CLI**
|
|
111
|
+
```bash
|
|
112
|
+
hedgequantx
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
2. **Select your connection**
|
|
116
|
+
- ProjectX
|
|
117
|
+
- Rithmic (coming soon)
|
|
118
|
+
- Tradovate (coming soon)
|
|
119
|
+
|
|
120
|
+
3. **Choose your prop firm**
|
|
121
|
+
- Select from the list of supported firms
|
|
122
|
+
|
|
123
|
+
4. **Login with your credentials**
|
|
124
|
+
- Enter your username
|
|
125
|
+
- Enter your password
|
|
126
|
+
|
|
127
|
+
5. **Access your dashboard**
|
|
128
|
+
- View Accounts
|
|
129
|
+
- View Positions
|
|
130
|
+
- View Orders
|
|
131
|
+
- User Info
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Screenshots
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
██╗ ██╗███████╗██████╗ ██████╗ ███████╗ ██████╗ ██╗ ██╗ █████╗ ███╗ ██╗████████╗██╗ ██╗
|
|
139
|
+
██║ ██║██╔════╝██╔══██╗██╔════╝ ██╔════╝██╔═══██╗██║ ██║██╔══██╗████╗ ██║╚══██╔══╝╚██╗██╔╝
|
|
140
|
+
███████║█████╗ ██║ ██║██║ ███╗█████╗ ██║ ██║██║ ██║███████║██╔██╗ ██║ ██║ ╚███╔╝
|
|
141
|
+
██╔══██║██╔══╝ ██║ ██║██║ ██║██╔══╝ ██║▄▄ ██║██║ ██║██╔══██║██║╚██╗██║ ██║ ██╔██╗
|
|
142
|
+
██║ ██║███████╗██████╔╝╚██████╔╝███████╗╚██████╔╝╚██████╔╝██║ ██║██║ ╚████║ ██║ ██╔╝ ██╗
|
|
143
|
+
╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚══════╝ ╚══▀▀═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝
|
|
144
|
+
────────────────────────────────────────────────────────────────────────────────────────────
|
|
145
|
+
Prop Futures Algo Trading
|
|
146
|
+
────────────────────────────────────────────────────────────────────────────────────────────
|
|
147
|
+
|
|
148
|
+
? Choose Your Connection:
|
|
149
|
+
❯ ProjectX
|
|
150
|
+
Rithmic
|
|
151
|
+
Tradovate
|
|
152
|
+
──────────────
|
|
153
|
+
Exit
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Project Structure
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
HQX-CLI/
|
|
162
|
+
├── bin/
|
|
163
|
+
│ └── cli.js # Main CLI entry point
|
|
164
|
+
├── src/
|
|
165
|
+
│ ├── api/
|
|
166
|
+
│ │ ├── projectx_userapi.json # ProjectX User API spec
|
|
167
|
+
│ │ └── projectx_gatewayapi.json # ProjectX Gateway API spec
|
|
168
|
+
│ └── services/
|
|
169
|
+
│ └── projectx.js # ProjectX API service
|
|
170
|
+
├── package.json
|
|
171
|
+
├── claude.md # Development rules
|
|
172
|
+
└── README.md
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## API Documentation
|
|
178
|
+
|
|
179
|
+
### ProjectX APIs
|
|
180
|
+
|
|
181
|
+
- **UserAPI**: Authentication, account management, stats, trades
|
|
182
|
+
- Host: `userapi.[propfirm].projectx.com`
|
|
183
|
+
|
|
184
|
+
- **GatewayAPI**: Trading operations (orders, positions)
|
|
185
|
+
- Host: `api.[propfirm].projectx.com`
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Development
|
|
190
|
+
|
|
191
|
+
### Run in development mode
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
cd HQX-CLI
|
|
195
|
+
npm run dev
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Run tests
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
npm test
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## Roadmap
|
|
207
|
+
|
|
208
|
+
- [x] ProjectX integration
|
|
209
|
+
- [x] Multi-propfirm support
|
|
210
|
+
- [x] Account viewing
|
|
211
|
+
- [x] Position viewing
|
|
212
|
+
- [x] Order viewing
|
|
213
|
+
- [ ] Rithmic integration
|
|
214
|
+
- [ ] Tradovate integration
|
|
215
|
+
- [ ] Algo trading engine
|
|
216
|
+
- [ ] Real-time market data
|
|
217
|
+
- [ ] Order placement
|
|
218
|
+
- [ ] Strategy builder
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Contributing
|
|
223
|
+
|
|
224
|
+
Contributions are welcome! Please read our contributing guidelines before submitting a PR.
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## License
|
|
229
|
+
|
|
230
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## Disclaimer
|
|
235
|
+
|
|
236
|
+
This software is for educational and informational purposes only. Trading futures involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results.
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Support
|
|
241
|
+
|
|
242
|
+
- GitHub Issues: [https://github.com/HedgeQuantX/HQX-CLI/issues](https://github.com/HedgeQuantX/HQX-CLI/issues)
|
|
243
|
+
- Email: marat.himet@gmail.com
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
**Made with passion by HedgeQuantX**
|