Elastic Search? I don't know what you are looking for, but I guess that is not it.
Portions of my log file look something like this:
YYYY-MM-DD HH:MM:SS,mmm;DEBUG;YYYY-MM-DD HH:MM:SS #<O (X=2.27),P=2.26>
YYYY-MM-DD HH:MM:SS,mmm;DEBUG;YYYY-MM-DD HH:MM:SS #<O (X=2.27),P=2.26>
YYYY-MM-DD HH:MM:SS,mmm;DEBUG;YYYY-MM-DD HH:MM:SS #<O (X=2.27),P=2.26>
YYYY-MM-DD HH:MM:SS,mmm;DEBUG;YYYY-MM-DD HH:MM:SS #<O (X=2.27),P=2.26>
YYYY-MM-DD HH:MM:SS,mmm;DEBUG;YYYY-MM-DD HH:MM:SS #<O (X=2.27),P=2.26>
YYYY-MM-DD HH:MM:SS,mmm;DEBUG;YYYY-MM-DD HH:MM:SS #<O (X=2.27),P=2.26>
In the case of an order or trade:
YYYY-MM-DD HH:MM:SS,mmm;INFO;YYYY-MM-DD HH:MM:SS #<O (X=2.27),P=2.26> Trade opened
YYYY-MM-DD HH:MM:SS,mmm;INFO;YYYY-MM-DD HH:MM:SS #<O (X=2.27),P=2.26> Trade closed. Net: Y
For now, I want to monitor 3 things:
1. Am I updating values for X and P -> Need notification if fails to update for some reason
2. When a trade is opened and a trade is closed -> Need notification on either event
3. If, for some reason the algo process exits -> "Trading done" message
If you want to have a remote kill switch, then SQS or its analogue from Azure / Google Cloud is what you can use. Halt all your trading workflows and initiate the liquidation.
I already have this done, but it is cloud agnostic and works with one command

Last edited: