Skip to content

MngCreateCopySubscription

Creates a subscription between an existing copy master and an existing copy follower.

If copy_existing_positions = 1, CopyTradeManager queues copy execution for the master's currently open market positions after creation. Already linked orders are skipped.

Runtime notes:

  • volume_mode = 0 uses fixed_volume.
  • volume_mode = 1 uses master_volume * risk_multiplier.
  • volume_mode = 2 uses follower/master equity ratio.
  • volume_mode = 3 uses follower/master balance ratio.
  • reverse_direction = 1 opens the opposite market direction and swaps copied SL/TP meaning.
  • copy_pending_orders is stored but pending order copy is not executed yet.

Access

SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER, SESSION_CRM_MANAGER, SESSION_CRM_ADMIN.

Request Parameters

Name Type Required Description
master_login int Yes Existing copy master login
follower_login int Yes Existing copy follower login
enabled int No 1 enabled, 0 disabled
status int No 0 active, 1 paused, 2 disabled
copy_mode int No 0 full sync, 1 open only, 2 close only
volume_mode int No 0 fixed, 1 multiplier, 2 equity ratio, 3 balance ratio
risk_multiplier double No Volume multiplier
fixed_volume int No Fixed follower volume
copy_sl int No Copy stop loss flag
copy_tp int No Copy take profit flag
copy_partial_close int No Copy partial close flag
copy_pending_orders int No Copy pending orders flag
copy_existing_positions int No Copy existing positions flag
reverse_direction int No Reverse direction flag
max_volume int No Maximum volume, 0 means not configured
min_volume int No Minimum volume, 0 means not configured
max_positions int No Maximum positions, 0 means not configured
symbols_mode int No 0 all, 1 include, 2 exclude
symbols string No Symbol filter payload

Response Data

Returns the created subscription object.