Skip to content

MngCreateCopyMaster

Creates a Copy Trading master record for an existing REAL trading account and creates the master's reward policy.

DEMO accounts cannot be used as Copy Trading masters.

Access

SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER, SESSION_CRM_MANAGER, SESSION_CRM_ADMIN.

Request Parameters

Name Type Required Description
login int Yes Existing trading account login
strategy_name string Yes Strategy display name
enabled int No 1 enabled, 0 disabled. Default 1
description string No Strategy description
visibility string No Visibility marker. Default private
allowed_follower_modes int No 0 real only, 1 demo only, 2 real and demo
reward_policy object Yes Reward policy created together with the master

reward_policy

Name Type Required Description
reward_type int Yes Reward model
enabled int No 1 enabled, 0 disabled. Default 1
billing_period string No Billing period marker. Default monthly
fee_amount double No Fixed fee amount, must be >= 0
fee_percent double No Percent fee, must be >= 0
currency string No Fee currency. Defaults to master account group currency
payout_account_login int No Payout account. Defaults to master login
hwm_enabled int No High-water mark flag

Request

{
  "command": "MngCreateCopyMaster",
  "extID": "1",
  "data": {
    "login": 2000001,
    "strategy_name": "Momentum USD",
    "enabled": 1,
    "visibility": "private",
    "allowed_follower_modes": 0,
    "reward_policy": {
      "reward_type": 1,
      "billing_period": "monthly",
      "fee_percent": 20,
      "hwm_enabled": 1
    }
  }
}

Response Data

Returns the created master object with reward_policy.

Errors

Error Description
ACCOUNT_NOT_FOUND Master account does not exist or its group is missing
MASTER_ACCOUNT_MUST_BE_REAL Master account belongs to a DEMO group
REWARD_POLICY_REQUIRED reward_policy was not provided
INVALID_REWARD_POLICY Reward policy payload is invalid