# FeatureTelegramConnectorDTO

DTO for Telegram Connector configuration (account) (PRO)

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**aiInstructions** | **string** | AI instructions for signal interpretation. Use this to customize how the AI interprets signals. The default prompt (JSON format, symbol mappings, SL/TP rules, open positions context) is always included. Examples: \&#39;The signal provider uses GOLD instead of XAUUSD\&#39;, \&#39;Ignore messages from admin\&#39;, \&#39;SL/TP values are always in points\&#39;, \&#39;Use only 50% of the volume specified in the signal\&#39;, \&#39;If signal says 1 lot, use 0.1 lot instead\&#39; | [optional] [default to undefined]
**aiTier** | **string** | AI model tier for signal interpretation. BASIC &#x3D; default model, no extra charge. STANDARD &#x3D; enhanced model, $5/month (billed daily). PRO &#x3D; premium model, $10/month (billed daily). NOTE: Can only be set on creation. To change the tier, delete and recreate the connector. | [optional] [default to AiTierEnum_Basic]
**allowedActions** | **Array&lt;string&gt;** | Allowed actions for signals from this chat. Valid values: open, close, modify. | [optional] [default to undefined]
**chatId** | **number** | Telegram chat ID to subscribe to | [default to undefined]
**chatTitle** | **string** | Chat title (denormalized for display) | [optional] [readonly] [default to undefined]
**confidenceThreshold** | **number** | AI confidence threshold (0-100). The AI analyzes each message and assigns a confidence score. Only signals with confidence &gt;&#x3D; this threshold are executed. Example: If threshold is 70 and AI returns confidence 65, the signal is skipped and logged but NOT executed. Lower values &#x3D; more signals executed (but more false positives). Higher values &#x3D; fewer signals (but more reliable). If null, uses global default (70). | [optional] [default to undefined]
**connectorIndex** | **number** | Unique connector index (1-9) within the account. Auto-assigned on creation. Appended to position comments to identify which connector opened each position. This allows multiple connectors on the same account to manage their own positions independently. | [optional] [readonly] [default to undefined]
**contextMessageCount** | **number** | Number of recent messages to include as context for AI interpretation. Higher values give the AI more context (useful for multi-message signals) but consume more tokens. If null, uses global default (5). | [optional] [default to 5]
**defaultStopLossPoints** | **number** | Default stop loss in points if the signal doesn\&#39;t provide a SL. Will be applied as relative distance from the fill price. | [optional] [default to undefined]
**defaultTakeProfitPoints** | **number** | Default take profit in points if the signal doesn\&#39;t provide a TP. Will be applied as relative distance from the fill price. | [optional] [default to undefined]
**defaultVolume** | **number** | Default volume if not specified in signal (used when volumeMode&#x3D;\&#39;fixed\&#39;) | [optional] [default to undefined]
**enabled** | **boolean** | Enable signal processing from this chat | [default to true]
**errorMessage** | **string** | Error message if status is ERROR | [optional] [readonly] [default to undefined]
**forceVolumeMode** | **boolean** | Force volume mode (ignore signal volume). If false (default): use volume from signal if provided, otherwise use volumeMode calculation. If true: always use volumeMode calculation, ignore any volume specified in the signal. Note: forceVolumeMode&#x3D;true with volumeMode&#x3D;AI will fall back to defaultVolume. | [optional] [default to false]
**lastMessageAt** | **string** | Last message processed timestamp | [optional] [readonly] [default to undefined]
**lotsPerThousandBalance** | **number** | Lots per 1000 balance (used when volumeMode&#x3D;\&#39;balance_scaled\&#39;). Example: If balance is 10000 and lotsPerThousandBalance is 0.01, calculated volume will be 0.1 | [optional] [default to 0.01]
**magicNumber** | **number** | Magic number for positions from this connector | [optional] [default to undefined]
**maxAllowedVolume** | **number** | Maximum allowed volume (safety limit). Applies to ALL volume modes. If calculated volume exceeds this, it will be capped to this value. Default is 1.0 lot. | [optional] [default to 1.0]
**messageExpiryMinutes** | **number** | Maximum message age in minutes. Messages older than this are skipped (e.g., due to network delays, Telegram outages, or server restarts). If null, uses global default (10). | [optional] [default to undefined]
**riskAmount** | **number** | Risk per trade as fixed currency amount (in account currency). Used when volumeMode&#x3D;\&#39;RISK_AMOUNT\&#39;. The lot size is calculated based on this amount, the stop loss distance, and the tick value. Requires the account-level FeatureRiskPerTrade to be enabled (for tick value configuration). A stop loss must be present on the signal or configured via defaultStopLossPoints. | [optional] [default to undefined]
**riskPercent** | **number** | Risk per trade as percentage of account balance (used when volumeMode&#x3D;\&#39;RISK_PERCENT\&#39;). The lot size is calculated based on this percentage, the stop loss distance, and the tick value. Requires the account-level FeatureRiskPerTrade to be enabled (for tick value configuration). A stop loss must be present on the signal or configured via defaultStopLossPoints. | [optional] [default to undefined]
**status** | **string** | Connector status | [optional] [readonly] [default to undefined]
**telegramAccountFeatureId** | **string** | Reference to the FeatureTelegramAccount feature ID | [default to undefined]
**volumeMode** | **string** | Volume calculation mode: FIXED &#x3D; use defaultVolume, BALANCE_SCALED &#x3D; calculate from account balance, AI &#x3D; let AI determine volume based on signal (customizable via aiInstructions field), RISK_PERCENT &#x3D; calculate lot size from risk percentage of account balance (requires riskPercent and stop loss), RISK_AMOUNT &#x3D; calculate lot size from fixed currency amount risk (requires riskAmount and stop loss) | [optional] [default to VolumeModeEnum_Fixed]

## Example

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

const instance: FeatureTelegramConnectorDTO = {
    aiInstructions,
    aiTier,
    allowedActions,
    chatId,
    chatTitle,
    confidenceThreshold,
    connectorIndex,
    contextMessageCount,
    defaultStopLossPoints,
    defaultTakeProfitPoints,
    defaultVolume,
    enabled,
    errorMessage,
    forceVolumeMode,
    lastMessageAt,
    lotsPerThousandBalance,
    magicNumber,
    maxAllowedVolume,
    messageExpiryMinutes,
    riskAmount,
    riskPercent,
    status,
    telegramAccountFeatureId,
    volumeMode,
};
```

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