hedgequantx 1.2.144 → 1.2.146

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.
@@ -292,6 +292,33 @@ class HQXServerService {
292
292
  this.send('stop_algo', {});
293
293
  }
294
294
 
295
+ /**
296
+ * Start copy trading session
297
+ */
298
+ startCopyTrading(config) {
299
+ this.send('start_copy_trading', {
300
+ // Lead account
301
+ leadAccountId: config.leadAccountId,
302
+ leadContractId: config.leadContractId,
303
+ leadSymbol: config.leadSymbol,
304
+ leadContracts: config.leadContracts,
305
+ leadPropfirm: config.leadPropfirm,
306
+ leadToken: config.leadToken,
307
+ leadRithmicCredentials: config.leadRithmicCredentials,
308
+ // Follower account
309
+ followerAccountId: config.followerAccountId,
310
+ followerContractId: config.followerContractId,
311
+ followerSymbol: config.followerSymbol,
312
+ followerContracts: config.followerContracts,
313
+ followerPropfirm: config.followerPropfirm,
314
+ followerToken: config.followerToken,
315
+ followerRithmicCredentials: config.followerRithmicCredentials,
316
+ // Targets
317
+ dailyTarget: config.dailyTarget,
318
+ maxRisk: config.maxRisk
319
+ });
320
+ }
321
+
295
322
  /**
296
323
  * Event listeners
297
324
  */