Quote:
Do you know a broker API with a connection status flag?
Sure. Most broker APIs provide error codes on connection status.

https://interactivebrokers.github.io/tws-api/message_codes.html#gsc.tab=0

http://fxcodebase.com/bin/forexconnect/1.5.0/help/CPlusPlus/web-content.html#SessionStatus.html

https://docs.mql4.com/constants/errorswarnings/enum_trade_return_codes

FIX/DTC use "heartbeats" to confirm that connection is "alive".

My suggestion is for Zorro to expose this to the end-user via some sort of flag or variable,
regardless of how Zorro internally determines that the connection is "offline" (Zorro already does this, right?)

Exposing order rejection errors would also be helpful.