feat(v0.1.0): project foundation with logging and config
This commit is contained in:
101
config/alerts.yaml
Normal file
101
config/alerts.yaml
Normal file
@@ -0,0 +1,101 @@
|
||||
# Alert System Configuration
|
||||
|
||||
enabled: true
|
||||
default_channel: "telegram" # telegram, slack, email, all
|
||||
|
||||
telegram:
|
||||
enabled: true
|
||||
bot_token: "${TELEGRAM_BOT_TOKEN}"
|
||||
chat_id: "${TELEGRAM_CHAT_ID}"
|
||||
|
||||
alerts:
|
||||
pattern_detected: true
|
||||
high_grade_pattern: true # Grade 4-5 patterns only
|
||||
setup_complete: true
|
||||
trade_executed: true
|
||||
trade_closed: true
|
||||
daily_summary: true
|
||||
|
||||
rate_limit:
|
||||
max_alerts_per_minute: 10
|
||||
max_alerts_per_hour: 50
|
||||
|
||||
slack:
|
||||
enabled: false
|
||||
webhook_url: "${SLACK_WEBHOOK_URL}"
|
||||
|
||||
alerts:
|
||||
pattern_detected: false
|
||||
high_grade_pattern: true
|
||||
setup_complete: true
|
||||
trade_executed: true
|
||||
trade_closed: true
|
||||
daily_summary: true
|
||||
|
||||
rate_limit:
|
||||
max_alerts_per_minute: 5
|
||||
max_alerts_per_hour: 30
|
||||
|
||||
email:
|
||||
enabled: false
|
||||
smtp_host: "${SMTP_HOST}"
|
||||
smtp_port: "${SMTP_PORT}"
|
||||
smtp_user: "${SMTP_USER}"
|
||||
smtp_password: "${SMTP_PASSWORD}"
|
||||
from_address: "${EMAIL_FROM}"
|
||||
to_addresses:
|
||||
- "${EMAIL_TO}"
|
||||
|
||||
alerts:
|
||||
pattern_detected: false
|
||||
high_grade_pattern: false
|
||||
setup_complete: true
|
||||
trade_executed: true
|
||||
trade_closed: true
|
||||
daily_summary: true
|
||||
|
||||
rate_limit:
|
||||
max_emails_per_hour: 5
|
||||
|
||||
# Alert message templates
|
||||
templates:
|
||||
pattern_detected: |
|
||||
🎯 Pattern Detected: {pattern_type}
|
||||
Grade: {grade}/5
|
||||
Symbol: {symbol}
|
||||
Time: {timestamp}
|
||||
Price: {price}
|
||||
|
||||
high_grade_pattern: |
|
||||
⭐ High Grade Pattern: {pattern_type}
|
||||
Grade: {grade}/5
|
||||
Confidence: {confidence}%
|
||||
Symbol: {symbol}
|
||||
Time: {timestamp}
|
||||
|
||||
setup_complete: |
|
||||
✅ Setup Complete: {setup_type}
|
||||
Patterns: {patterns}
|
||||
Confidence: {confidence}%
|
||||
Entry Signal: {signal}
|
||||
|
||||
trade_executed: |
|
||||
📈 Trade Executed
|
||||
Type: {trade_type}
|
||||
Entry: {entry_price}
|
||||
Stop Loss: {stop_loss}
|
||||
Take Profit: {take_profit}
|
||||
Size: {size} contracts
|
||||
|
||||
trade_closed: |
|
||||
📊 Trade Closed
|
||||
P&L: {pnl} EUR
|
||||
Return: {return_pct}%
|
||||
Duration: {duration}
|
||||
|
||||
# Alert filtering
|
||||
filters:
|
||||
min_pattern_grade: 3 # Only alert on grade 3+ patterns
|
||||
min_setup_confidence: 0.70
|
||||
only_live_trading: false # If true, only alert during live trading hours
|
||||
|
||||
Reference in New Issue
Block a user