MngUpdatePropProgram¶
Updates an existing prop trading program.
This method saves the program aggregate. If steps is provided, nested program steps are replaced as one aggregate.
Use status = 0 to activate a program and status = 1 to disable it.
Access¶
SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER, SESSION_CRM_MANAGER, SESSION_CRM_ADMIN.
Request Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
id |
int | Yes | Program id |
brand |
string | No | Brand namespace |
name |
string | No | Program name |
description |
string | No | Program description |
demo_group |
string | No | Trading group for DEMO challenge accounts |
price |
double | No | Purchase price |
price_currency |
string | No | Purchase currency |
status |
int | No | 0 active, 1 disabled, 2 archived |
sort_index |
int | No | UI ordering value |
steps |
array | No | Replacement steps/phases for this program |
Request¶
{
"command": "MngUpdatePropProgram",
"extID": "1",
"data": {
"id": 1,
"name": "Evaluation 100K - Standard",
"price": 549.0,
"status": 0,
"steps": [
{
"phase_index": 1,
"name": "Evaluation",
"duration_days": 30,
"max_daily_loss_pct": 5,
"max_total_loss_pct": 10,
"profit_target_pct": 10
}
]
}
}
Response Data¶
{
"program": {
"id": 1,
"brand": "default",
"name": "Evaluation 100K - Standard",
"description": "Two phase evaluation",
"demo_group": "PROP_DEMO_USD",
"price": 549.0,
"price_currency": "USD",
"status": 0,
"sort_index": 100,
"created_time": 1778160000,
"updated_time": 1778160300
},
"steps": [
{
"id": 2,
"program_id": 1,
"phase_index": 1,
"name": "Evaluation",
"duration_days": 30,
"max_daily_loss_pct": 5,
"max_total_loss_pct": 10,
"profit_target_pct": 10,
"min_trading_days": 0,
"max_trading_days": 0,
"max_positions": 0,
"created_time": 1778160300,
"updated_time": 1778160300
}
]
}