kopia lustrzana https://github.com/fabston/TradingView-Webhook-Bot
23 wiersze
863 B
Python
23 wiersze
863 B
Python
# Alert message in TradingView (ex. https://i.imgur.com/RFkuf1d.png)
|
|
Buy_Alert = 'Buy Alert!'
|
|
Sell_Alert = 'Sell Alert!'
|
|
|
|
# Telegram Settings
|
|
send_telegram_alerts = True
|
|
tg_token = '' # Bot token. Get it from @Botfather
|
|
channel = # Channel ID (ex. -1001487568087)
|
|
|
|
# Discord Settings
|
|
send_discord_alerts = True
|
|
discord_webhook = '' # Discord Webhook URL (https://support.discordapp.com/hc/de/articles/228383668-Webhooks-verwenden)
|
|
|
|
# Email Settings
|
|
send_email_alerts = False
|
|
email_sender = '' # Your email address
|
|
email_receivers = ['', ''] # Receivers, can be multiple
|
|
email_subject = 'Trade Alert!'
|
|
|
|
email_port = 465 # SMTP SSL Port (ex. 465)
|
|
email_host = '' # SMTP host (ex. smtp.gmail.com)
|
|
email_user = '' # SMTP Login credentials
|
|
email_password = '' # SMTP Login credentials |