# FeatureMaintenanceWindowDTO

DTO for defining a maintenance window (project)

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**accountType** | [**AccountTypeDTO**](AccountTypeDTO.md) |  | [optional] [default to undefined]
**affectedAccountIds** | **Array&lt;string&gt;** | List of account IDs that were affected by this maintenance window. Used to restart/resume only these accounts when the window ends. | [optional] [default to undefined]
**affectedCopierStates** | [**{ [key: string]: CopierStateDTO; }**](CopierStateDTO.md) | Map of copier IDs to their original states before maintenance. Used to restore copiers to their exact previous state. | [optional] [default to undefined]
**broker** | **string** | Is only applied to a specific broker, for example, \&#39;ICMarkets.*\&#39; (case non sensitive). For all brokers, you can enter \&#39;.*\&#39; or null (this is a regex) | [optional] [default to undefined]
**closePositionStrategy** | **string** | Strategy for closing positions during maintenance window. Default is DO_NOT_CLOSE. | [optional] [default to undefined]
**enabled** | **boolean** | Whether the maintenance window is enabled. Default is true. | [optional] [default to undefined]
**endTime** | **string** | End time of the maintenance window. | [default to undefined]
**entryActionsExecuted** | **boolean** | Tracks whether entry actions (close positions, stop accounts/pause copiers) have been executed for this maintenance window instance. | [optional] [default to undefined]
**maintenanceAction** | **string** | Action to perform during maintenance window. Default is PAUSE_COPIERS. | [optional] [default to undefined]
**positionsClosedForAccounts** | **Set&lt;string&gt;** | Set of account IDs for which positions have already been closed during this maintenance window. | [optional] [default to undefined]
**startTime** | **string** | Start time of the maintenance window. | [default to undefined]

## Example

```typescript
import { FeatureMaintenanceWindowDTO } from 'js-metacopier-api';

const instance: FeatureMaintenanceWindowDTO = {
    accountType,
    affectedAccountIds,
    affectedCopierStates,
    broker,
    closePositionStrategy,
    enabled,
    endTime,
    entryActionsExecuted,
    maintenanceAction,
    positionsClosedForAccounts,
    startTime,
};
```

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
