I ran into a new issue with my automated system yesterday. I shutdown TWS and my app around 11 PM (before the 12 IB server reset.. huge hassle, if anyone knows a good automated way to get around this). and restarted them both around 12:40 am. Data was coming in fine so I went to bed. When I woke up in the morning I discovered TWS' data feed froze around 3am, requiring a manual TWS restard, so it missed out on a whole night's worth of trading. My system would be able to detect TWS' data feed freezes, but Im not sure if there is any way to force TWS to reconnect through the API. Does anyone have any ideas?