Overview
Groups¶
GroupsHandler предоставляет только TCP manager methods для управления торговыми группами.
Доступные методы:
- GetGroups
- AddGroup
- UpdateGroup
- DeleteGroup
Доступ:
- SESSION_ADMIN
- SESSION_MANAGER
- SESSION_CRM_ADMIN
- SESSION_CRM_MANAGER
Manager permissions and scope are resolved from the cached staff manager record. The token is used only as the source of manager id and session type.
Access policy:
- GetGroups requires BackOffice access and one of see_accounts, see_trades, or market_watch. Returned rows are limited by manager groups and brand.
- AddGroup, UpdateGroup, and DeleteGroup require set_accounts. The current and target group must match manager groups and brand scope.
Client REST methods для групп в текущем сервере не реализованы.
Margin-state recovery¶
Group configuration includes margin-state recovery hysteresis:
margin_call_recovery_buffer— buffer required to recover from Margin Call; default5.0.margin_stopout_recovery_buffer— buffer required to recover from Stop Out; default5.0.margin_recovery_hold_ms— continuous recovery hold period; default3000ms.
Escalation to a more severe margin state is immediate. Recovery is committed only after the relevant threshold plus buffer remains satisfied for the configured hold period and a full account margin recalculation confirms it.