hedgequantx 1.2.127 → 1.2.128

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "1.2.127",
3
+ "version": "1.2.128",
4
4
  "description": "Prop Futures Algo Trading CLI - Connect to Topstep, Alpha Futures, and other prop firms",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -7,6 +7,7 @@ const RITHMIC_ENDPOINTS = {
7
7
  TEST: 'wss://rituz00100.rithmic.com:443',
8
8
  PAPER: 'wss://ritpa11120.11.rithmic.com:443',
9
9
  LIVE: 'wss://ritpz01000.01.rithmic.com:443',
10
+ APEX: 'wss://ritpz01000.01.rithmic.com:443', // Apex uses live server
10
11
  };
11
12
 
12
13
  // System names for PropFirms
@@ -57,8 +57,14 @@ class RithmicService extends EventEmitter {
57
57
  // Connect to ORDER_PLANT
58
58
  this.orderConn = new RithmicConnection();
59
59
 
60
+ // Determine endpoint based on propfirm
61
+ let endpoint = RITHMIC_ENDPOINTS.PAPER;
62
+ if (this.propfirmKey === 'apex' || this.propfirmKey === 'apex_rithmic') {
63
+ endpoint = RITHMIC_ENDPOINTS.LIVE; // Apex uses live server
64
+ }
65
+
60
66
  const config = {
61
- uri: RITHMIC_ENDPOINTS.PAPER,
67
+ uri: endpoint,
62
68
  systemName: this.propfirm.systemName,
63
69
  userId: username,
64
70
  password: password,
@@ -139,8 +145,14 @@ class RithmicService extends EventEmitter {
139
145
  try {
140
146
  this.pnlConn = new RithmicConnection();
141
147
 
148
+ // Determine endpoint based on propfirm
149
+ let endpoint = RITHMIC_ENDPOINTS.PAPER;
150
+ if (this.propfirmKey === 'apex' || this.propfirmKey === 'apex_rithmic') {
151
+ endpoint = RITHMIC_ENDPOINTS.LIVE; // Apex uses live server
152
+ }
153
+
142
154
  const config = {
143
- uri: RITHMIC_ENDPOINTS.PAPER,
155
+ uri: endpoint,
144
156
  systemName: this.propfirm.systemName,
145
157
  userId: username,
146
158
  password: password,