# FeatureTradingViewWebhookDTO

DTO to enable TradingView webhook access (account) (PRO)

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allowCloseAll** | **boolean** | Allow closeAll action. WARNING: Closes ALL positions! | [optional] [default to false]
**allowSymbolOnlyClose** | **boolean** | Allow close by symbol only without additional filters (direction/closeMode). WARNING: Can close multiple positions. | [optional] [default to false]
**allowedActions** | **Array&lt;string&gt;** | Allowed actions. Null or empty means all actions are allowed. | [optional] [default to undefined]
**authMethod** | **string** | Authentication method: SECRET (recommended) or HMAC (requires proxy) | [default to AuthMethodEnum_Secret]
**dataRetentionDays** | **number** | TTL in days for stored TradingView data. | [optional] [default to 30]
**enableWebhook** | **boolean** | Enable TradingView webhook access for this account | [default to true]
**enabled** | **boolean** |  | [optional] [default to undefined]
**hmacSecret** | **string** | HMAC secret (auto-generated, read-only). Used for HMAC signature verification. | [optional] [readonly] [default to undefined]
**ipAllowlist** | **Array&lt;string&gt;** | IP allowlist for additional security. Empty means allow all IPs (recommended). WARNING: TradingView IPs may change without notice. | [optional] [default to undefined]
**maxMatchCount** | **number** | Max positions to match before requiring force:true. Safety guard against accidental bulk operations. | [optional] [default to 3]
**maxMatchCountOrDefault** | **number** |  | [optional] [default to undefined]
**requireTimestampForSecret** | **boolean** | Require timestamp field for SECRET auth (optional replay protection). | [optional] [default to false]
**timestampToleranceSeconds** | **number** | Timestamp tolerance in seconds for replay protection. Requests with timestamps older than this are rejected. | [optional] [default to 60]
**timestampToleranceSecondsOrDefault** | **number** |  | [optional] [default to undefined]
**webhookSecret** | **string** | Webhook secret for SECRET auth (min 16 chars, stored hashed). Use \&#39;Generate Secret\&#39; button for a random secure secret. | [optional] [default to undefined]

## Example

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

const instance: FeatureTradingViewWebhookDTO = {
    allowCloseAll,
    allowSymbolOnlyClose,
    allowedActions,
    authMethod,
    dataRetentionDays,
    enableWebhook,
    enabled,
    hmacSecret,
    ipAllowlist,
    maxMatchCount,
    maxMatchCountOrDefault,
    requireTimestampForSecret,
    timestampToleranceSeconds,
    timestampToleranceSecondsOrDefault,
    webhookSecret,
};
```

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