Skip to content

Groups Event

When a trading group changes, authorized TCP manager sessions receive a group:event JSON object. The type field is the record event code and data contains the group settings, including its Security and Group Symbol overrides.

{
  "event": "group:event",
  "type": 1,
  "data": {
    "group": "standard",
    "brand": "ion4",
    "currency": "USD",
    "money_digits": 2,
    "enable": 1,
    "account_mode": 1,
    "source": 1,
    "timeout": 0,
    "default_leverage": 100,
    "default_deposit": 500.0,
    "credit": 0.0,
    "credit_withdrawal_policy": 0,
    "deposit_reversal_policy": 0,
    "withdrawal_margin_reserve": 0.0,
    "margin_call": 50,
    "margin_mode": 0,
    "margin_stopout": 30,
    "stopout_close_policy": 0,
    "margin_call_recovery_buffer": 5.0,
    "margin_stopout_recovery_buffer": 5.0,
    "margin_recovery_hold_ms": 3000,
    "interestrate": 0,
    "hedge_largeleg": 0,
    "use_swap": 1,
    "maxpositions": 0,
    "hedge_prohibited": 0,
    "allow_negative_margin_hedge": 1,
    "partial_close": 1,
    "margin_type": 0,
    "stopout_skip_hedged": 0,
    "archive_pending_period": 0,
    "close_reopen": 0,
    "secgroups": [
      {
        "sec_index": 12,
        "show": 1,
        "trade": 1,
        "execution": 0,
        "commission_enable": 1,
        "comm_base": 2.5,
        "comm_type": 0,
        "comm_lots": 0,
        "comm_tax": 0.0,
        "comm_agent": 0.0,
        "comm_agent_type": 0,
        "comm_agent_lots": 0,
        "spread_diff": 0,
        "spread_enable": 1,
        "spread": 12,
        "spread_balance": 5,
        "lot_min": 100,
        "lot_max": 100000,
        "lot_step": 100,
        "confirmation": 0,
        "trade_rights": 0,
        "autocloseout_mode": 0,
        "name": "FX",
        "description": "Forex",
        "background_color": "#ffffff"
      }
    ],
    "secmargins": [
      {
        "swap_enable": 1,
        "swap_long": -2.0,
        "swap_short": 1.5,
        "margin_divider": 1.0,
        "commission_enable": 0,
        "comm_base": 0.0,
        "comm_type": 0,
        "comm_lots": 0,
        "spread_enable": 0,
        "spread": 0,
        "spread_balance": 0,
        "symbol": "EURUSD"
      }
    ]
  }
}

For both nested override types, commission_enable: 0 inherits; 1 replaces the complete comm_base / comm_type / comm_lots triplet. A zero rate with enable set to 1 explicitly means no base commission. The effective hierarchy is Security matched directly by symbol.sec_index → Symbol → enabled Group Security (secgroups) → enabled exact-symbol Group Symbol (secmargins). Parent securities are not traversed. Agent and tax fields shown in the payload are separate settings and are not part of this commission hierarchy change.

type: 1 is EV_RECORD_UPDATE; add and delete events use the corresponding record event codes.