MngUpdateCopyMaster¶
Updates a Copy Trading master record.
Access¶
SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER, SESSION_CRM_MANAGER, SESSION_CRM_ADMIN.
Non-admin manager access requires access_backoffice or access_crm plus set_copy_masters.
Relinking login is rejected while copied orders for the existing master login are unsettled.
Request Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
id |
int | Yes | Master record id |
login |
int | No | Existing trading account login |
enabled |
int | No | 1 enabled, 0 disabled |
strategy_name |
string | No | Strategy display name |
description |
string | No | Strategy description |
visibility |
string | No | Visibility marker |
allowed_follower_modes |
int | No | 0 real only, 1 demo only, 2 real and demo |
show_trade_history |
int | No | 1 allows public trade history, 0 keeps it private |
show_followers |
int | No | 1 allows public follower statistics, 0 keeps them private |
Response Data¶
Returns the saved object; updated_time is the timestamp of this update:
{
"id": 7,
"login": 100001,
"enabled": 1,
"strategy_name": "Conservative FX v2",
"description": "Low risk majors",
"visibility": "public",
"allowed_follower_modes": 2,
"show_trade_history": 1,
"show_followers": 1,
"created_time": 1780838400,
"updated_time": 1780838401
}
Conflict Return Codes¶
Possible error codes: RET_USR_HAS_TRADES (Account has open trades) for unsettled copied orders; RET_TRADE_LIMIT_REACHED (Trades limit reached) when an active distinct-master limit would be exceeded.