Hi all,

I am very new to LEAN and quantconnect.com itself. I have read up through the documentation and I was wondering what mechanism would be best suited to implement an circuit breaker / emergency button for a local LEAN server. That is, is there a way to inject external signals into LEAN to make it liquidate all positions in case of an "emergency" that is not detected by the algorithm. For example, implement a light-weight REST API on a webserver that runs locally in a docker, and that can signal LEAN whenever a specific POST is made to that REST API. Or, can that be done by implementing a light-weight webserver in C# that is compiled with LEAN, and that can set some global/strategy variable that is picked up by the algorithm ?