Skip to content

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
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

When steps is provided, each step must include account_group. Evaluation phases must use a DEMO group, funded phases must use a REAL group. program.profit_split in the response is computed from the funded phase.

Response step objects include computed initial_balance, resolved from account_group -> GroupRecord.default_deposit.

Request

{
  "command": "MngUpdatePropProgram",
  "extID": "1",
  "data": {
    "id": 1,
    "name": "Evaluation 100K - Standard",
    "price": 549.0,
    "status": 0,
    "steps": [
      {
        "phase_index": 1,
        "phase_type": 0,
        "name": "Evaluation",
        "account_group": "PROP_DEMO_USD",
        "duration_days": 30,
        "max_daily_loss_pct": 5,
        "max_total_loss_pct": 10,
        "max_daily_profit_pct": 0,
        "profit_target_pct": 10,
        "profit_split": 0
      },
      {
        "phase_index": 2,
        "phase_type": 1,
        "name": "Funded",
        "account_group": "PROP_REAL_USD",
        "duration_days": 30,
        "max_daily_loss_pct": 5,
        "max_total_loss_pct": 10,
        "max_daily_profit_pct": 5,
        "profit_target_pct": 0,
        "profit_split": 0.8
      }
    ]
  }
}

Response Data

{
  "program": {
    "id": 1,
    "brand": "default",
    "name": "Evaluation 100K - Standard",
    "description": "Two phase evaluation",
    "price": 549.0,
    "price_currency": "USD",
    "profit_split": 0.8,
    "status": 0,
    "sort_index": 100,
    "created_time": 1778160000,
    "updated_time": 1778160300
  },
  "steps": [
    {
      "id": 2,
      "program_id": 1,
      "phase_index": 1,
      "phase_type": 0,
      "name": "Evaluation",
      "account_group": "PROP_DEMO_USD",
      "initial_balance": 100000,
      "duration_days": 30,
      "max_daily_loss_pct": 5,
      "max_total_loss_pct": 10,
      "max_daily_profit_pct": 0,
      "profit_target_pct": 10,
      "profit_split": 0,
      "min_trading_days": 0,
      "max_trading_days": 0,
      "max_positions": 0,
      "created_time": 1778160300,
      "updated_time": 1778160300
    },
    {
      "id": 3,
      "program_id": 1,
      "phase_index": 2,
      "phase_type": 1,
      "name": "Funded",
      "account_group": "PROP_REAL_USD",
      "initial_balance": 100000,
      "duration_days": 30,
      "max_daily_loss_pct": 5,
      "max_total_loss_pct": 10,
      "max_daily_profit_pct": 5,
      "profit_target_pct": 0,
      "profit_split": 0.8,
      "min_trading_days": 0,
      "max_trading_days": 0,
      "max_positions": 0,
      "created_time": 1778160300,
      "updated_time": 1778160300
    }
  ]
}