hedgequantx 2.3.18 → 2.3.19
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/dist/lib/api.jsc +0 -0
- package/dist/lib/api2.jsc +0 -0
- package/dist/lib/core.jsc +0 -0
- package/dist/lib/core2.jsc +0 -0
- package/dist/lib/data.jsc +0 -0
- package/dist/lib/data2.jsc +0 -0
- package/dist/lib/decoder.jsc +0 -0
- package/dist/lib/m/mod1.jsc +0 -0
- package/dist/lib/m/mod2.jsc +0 -0
- package/dist/lib/n/r1.jsc +0 -0
- package/dist/lib/n/r2.jsc +0 -0
- package/dist/lib/n/r3.jsc +0 -0
- package/dist/lib/n/r4.jsc +0 -0
- package/dist/lib/n/r5.jsc +0 -0
- package/dist/lib/n/r6.jsc +0 -0
- package/dist/lib/n/r7.jsc +0 -0
- package/dist/lib/o/util1.jsc +0 -0
- package/dist/lib/o/util2.jsc +0 -0
- package/package.json +1 -1
- package/src/pages/algo/one-account.js +7 -1
package/dist/lib/api.jsc
CHANGED
|
Binary file
|
package/dist/lib/api2.jsc
CHANGED
|
Binary file
|
package/dist/lib/core.jsc
CHANGED
|
Binary file
|
package/dist/lib/core2.jsc
CHANGED
|
Binary file
|
package/dist/lib/data.jsc
CHANGED
|
Binary file
|
package/dist/lib/data2.jsc
CHANGED
|
Binary file
|
package/dist/lib/decoder.jsc
CHANGED
|
Binary file
|
package/dist/lib/m/mod1.jsc
CHANGED
|
Binary file
|
package/dist/lib/m/mod2.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r1.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r2.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r3.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r4.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r5.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r6.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r7.jsc
CHANGED
|
Binary file
|
package/dist/lib/o/util1.jsc
CHANGED
|
Binary file
|
package/dist/lib/o/util2.jsc
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -191,6 +191,7 @@ const launchAlgo = async (service, account, contract, config) => {
|
|
|
191
191
|
let stopReason = null;
|
|
192
192
|
let startingPnL = null; // P&L at algo start (from API)
|
|
193
193
|
let lastPositionPnL = 0;
|
|
194
|
+
let pollCount = 0;
|
|
194
195
|
|
|
195
196
|
// Log startup info from API
|
|
196
197
|
ui.addLog('info', `Connection: ${connectionType}`);
|
|
@@ -213,6 +214,8 @@ const launchAlgo = async (service, account, contract, config) => {
|
|
|
213
214
|
// Poll data from API - 100% real data
|
|
214
215
|
const pollAPI = async () => {
|
|
215
216
|
try {
|
|
217
|
+
pollCount++;
|
|
218
|
+
|
|
216
219
|
// Get account P&L from API
|
|
217
220
|
const accountResult = await service.getTradingAccounts();
|
|
218
221
|
if (accountResult.success && accountResult.accounts) {
|
|
@@ -268,7 +271,10 @@ const launchAlgo = async (service, account, contract, config) => {
|
|
|
268
271
|
ui.addLog('info', `${side} ${qty}x @ P&L: $${positionPnL.toFixed(2)}`);
|
|
269
272
|
}
|
|
270
273
|
} else {
|
|
271
|
-
// No position for this symbol
|
|
274
|
+
// No position for this symbol - log status every 15 polls (~30 sec)
|
|
275
|
+
if (pollCount % 15 === 0) {
|
|
276
|
+
ui.addLog('info', `Waiting for ${symbolName} position... (Session P&L: $${stats.pnl.toFixed(2)})`);
|
|
277
|
+
}
|
|
272
278
|
lastPositionPnL = 0;
|
|
273
279
|
}
|
|
274
280
|
}
|