# RiskLimitDTO


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**absoluteRiskLimit** | **number** | Enter an absolute risk limit in account currency. Set to 0 to deactivate. | [optional] [default to 0]
**accountId** | **string** | You have to set it during resource creation, after that, it is only read-only | [optional] [default to undefined]
**active** | **boolean** |  | [optional] [default to true]
**closeAllOpenPositions** | **boolean** | If set to \&#39;true\&#39;, all positions will be closed immediately when the primary risk limit is reached. If set to \&#39;false\&#39;, new trades will not be opened when the primary limit is reached, but the fallback limits become active as a secondary safety measure. | [optional] [default to true]
**copierId** | **string** | You have to set it during resource creation, after that, it is only read-only | [optional] [default to undefined]
**fallbackAbsoluteRiskLimit** | **number** | Fallback absolute risk limit in account currency. Only applies when closeAllOpenPositions is false. When this limit is reached, all positions will be closed. Set to 0 to deactivate. | [optional] [default to 0]
**fallbackRelativeRiskLimit** | **number** | Fallback relative risk limit in account currency. Only applies when closeAllOpenPositions is false. When this limit is reached, all positions will be closed. Set to 0 to deactivate. | [optional] [default to 0]
**fallbackRiskLimit** | **number** | Fallback risk limit (percentage). Only applies when closeAllOpenPositions is false. When this limit is reached, all positions will be closed. Set to 0 to deactivate. | [optional] [default to 0]
**fulfillSeconds** | **number** | If set to 5, it means that if the limit is reached and stays over the limit for 5 seconds, the risk limit will be activated; otherwise, the limit will remain deactivated | [optional] [default to 60]
**id** | **string** |  | [optional] [readonly] [default to undefined]
**relativeRiskLimit** | **number** | Enter an relative risk limit in account currency. Set to 0 to deactivate. | [optional] [default to 0]
**resetTime** | **string** | ISO 8601. Set the reset time for calculation (see riskType). Only used for 1-3 risk type. Only the time is considered, and the date is ignored. | [optional] [default to 2023-12-30T00:00Z]
**riskLimit** | **number** | 0.215 for 21.5% (set to 0 to deactivate) | [default to undefined]
**riskType** | [**RiskTypeDTO**](RiskTypeDTO.md) |  | [default to undefined]

## Example

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

const instance: RiskLimitDTO = {
    absoluteRiskLimit,
    accountId,
    active,
    closeAllOpenPositions,
    copierId,
    fallbackAbsoluteRiskLimit,
    fallbackRelativeRiskLimit,
    fallbackRiskLimit,
    fulfillSeconds,
    id,
    relativeRiskLimit,
    resetTime,
    riskLimit,
    riskType,
};
```

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