When you write code to execute trades, it’s important to have a good framework for sending notifications.
If you send notifications for every little thing, you will become desensitized to them and risk missing the critical ones.
If you don’t send any notifications, you risk tethering yourself to your trading desk waiting for an important event that might occur at any moment.
A well-designed system for notifications is an investment in your freedom.
I’ve tried several ways to send notifications over the years but nothing was perfect.
Slack seems like a nice choice, but it lacks flexibility in prioritizing notifications.
A trader friend suggested Pushover, so I gave it a try.
The API is super simple with code examples for any language (or even the Windows command line).
What I love about it is the ability to prioritize notifications and control how your phone responds.
Low-priority notifications can be silent, while high-priority notifications (like a rejected order) can be configured with a custom sound and escalating nagging if you don’t acknowledge it.
So you can write your code once to send notifications with various priorities and then after the fact configure your phone to respond in the way you want (even overriding your Do Not Disturb settings when appropriate).
Give it a shot and let me know what you think.
-Dave