soranoo / TradingView-Free-Webhook-Alerts

Free TradingView webhook alert for basic plan users.
GNU General Public License v3.0
185 stars 69 forks source link

It Read all non-relative emails and Parse too slowly #78

Closed blogmpw1 closed 3 months ago

blogmpw1 commented 3 months ago

Describe the bug It read all my emails which in my opinion is nonsense. And the content parsing is too slow for autotrading.

Screenshots none

Environment:

Additional context 22-06-2024 15:20:17 | INFO | Initializing... 22-06-2024 15:20:17 | INFO | Listening to IMAP server(imap.gmail.com)... 22-06-2024 15:28:48 | DEBUG | PROCESSING: Email UID<11149> from no-reply@accounts.google.com 22-06-2024 15:43:28 | DEBUG | The log file will be saved in </usr/local/bin/tvokx/logs>. 22-06-2024 15:43:28 | INFO | Initializing... 22-06-2024 15:43:29 | INFO | Listening to IMAP server(imap.gmail.com)... 22-06-2024 15:44:44 | DEBUG | PROCESSING: Email UID<1035> from noreply@tradingview.com 22-06-2024 15:50:15 | DEBUG | PROCESSING: Email UID<1037> from noreply@tradingview.com 22-06-2024 15:50:15 | INFO | Sending webhook alert, content: {"action": "EXIT_LONG", "instrument": "VELOUSDT.P", "signalToken": "CENSORED", "timestamp": "1719071400000", "maxLag": "60", "orderType": "market", "orderPriceOffset": "", "amount": "100"} 22-06-2024 15:50:15 | INFO | The whole process taken 12.41s.

blogmpw1 commented 3 months ago

need help. Of course you can have unlimited alerts for free from TV. but i got stuck here: ` 22-06-2024 16:07:06 | DEBUG | PROCESSING: Email UID<1038> from noreply@tradingview.com 22-06-2024 16:07:06 | INFO | Sending webhook alert, content: {"action": "ENTER_LONG", "instrument": "VELOUSDT.P", "signalToken": "Csred", "timestamp": "1719072420000", "maxLag": "60", "orderType": "market", "investmentType": "percentage_balance", "amount": "10"} 22-06-2024 16:07:06 | INFO | The whole process taken 5.811s. 22-06-2024 16:11:02 | DEBUG | PROCESSING: Email UID<1039> from noreply@tradingview.com 22-06-2024 16:11:02 | INFO | Sending webhook alert, content: {"action": "EXIT_LONG", "instrument": "VELOUSDT.P", "signalToken": "csred", "timestamp": "1719072600000", "maxLag": "60", "orderType": "market", "orderPriceOffset": "", "amount": "100"} 22-06-2024 16:11:02 | INFO | The whole process taken 11.433s.

`

blogmpw1 commented 3 months ago

after those above, tested Ngrok and pipedream. got better. issue close.

22-06-2024 18:01:14 | INFO | Sending webhook alert, content: {"action": "EXIT_LONG", "instrument": "VELOUSDT.P", "signalToken": "CSRED==", "timestamp": "1719079260000", "maxLag": "60", "orderType": "market", "orderPriceOffset": "", "amount": "100"}

22-06-2024 18:01:14 | INFO | The whole process taken 2.853907s. 2024-06-22T18:02:03.405Z 22-06-2024 18:02:05 | INFO | Sending webhook alert, content: {"action": "ENTER_LONG", "instrument": "VELOUSDT.P", "signalToken": "CSRED==", "timestamp": "1719079320000", "maxLag": "60", "orderType": "market", "investmentType": "percentage_balance", "amount": "10"}

22-06-2024 18:02:06 | INFO | The whole process taken 2.690018s.