# FeatureMaxOpenPositionsDTO

DTO for max open positions feature (copier/account)

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**maxOpenPositions** | **number** | Specifies the global maximum number of open positions allowed across all symbols. If this limit is reached, no new positions will be opened until existing positions are closed. This setting will override the copier\&#39;s multiplier. A value of 0 disables this feature, allowing unlimited open positions. | [optional] [default to 0]
**maxPositionsInTimeWindow** | **number** | Maximum number of positions allowed to be opened within the specified time window. For example, if set to 1 with a 120-second time window, only 1 position can be opened every 2 minutes. If multiple orders arrive simultaneously, only the first N orders (based on this value) will be taken, and the rest will be skipped until the time window expires. A value of 0 disables this time-based throttling. Works at both copier and account levels. | [optional] [default to 0]
**symbolsConfiguration** | [**{ [key: string]: FeatureMaxOpenPositionsDTO; }**](FeatureMaxOpenPositionsDTO.md) | Defines the maximum number of open positions per symbol. The total number of open positions across all symbols is subject to the general maxOpenPositions limit. | [optional] [default to undefined]
**timeWindowSeconds** | **number** | Time window in seconds for the position throttling. Works together with maxPositionsInTimeWindow to limit how many positions can be opened in a given time period. For example, with maxPositionsInTimeWindow&#x3D;1 and timeWindowSeconds&#x3D;120, only 1 position can be opened every 2 minutes. Works at both copier and account levels. | [optional] [default to 0]

## Example

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

const instance: FeatureMaxOpenPositionsDTO = {
    maxOpenPositions,
    maxPositionsInTimeWindow,
    symbolsConfiguration,
    timeWindowSeconds,
};
```

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