Hi,
I have tried using the following email notification:
this.Notify.Email("email@gmail.com", $"BUY {size} @ {price}", "");
to send email notifications but I am not getting any notifications when my conditions are triggered...
I am running LEAN on my local machine using InteractiveBrokers for Data and Execution (all live trading is running smoothly).
Am I missing something? Do I need to configure anything for the notifications?
Thank you
Shile Wen
Hi Georgea,
The Notification system is a QC service not available in Lean. You will need to implement it in Notification.cs#35.
Best,
Shile Wen
Nottakumasato
Shile Wen is it possible to implement a custom notification class in Python? or just in C#?
Nottakumasato
Shile Wen is it also possible to implement a webhook completely unrelated to LEAN/QC and use that to send notifications from within a Docker container when running LEAN locally?
Louis Szeto
Hi Nottakumasato
Sorry for the delay. You can run `lean live` in a detached docker container with the option --detach. Then write a separate time-recursive script to get the output of the container regularly, and send notifications if a certain line of the output meets some criteria by your own implementation of a webhook.
Best
Louis
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Georgea Trading
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!