For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

next() not generated anymore after "IB and Trader Workstation connectivity lost"



  • hey @vytautas-a , thanks for the contribution, i will test it and share my results here.



  • @vytautas-a , thanks for your information, it's very helpful.
    I have tried your solution, but seems not work for me. My problem is the retrun msg in backfilling function is None, so the subscription game over.
    so I put the self._state back to self._ST_LIVE, then the livedata is back after connection restored.

                elif self._state == self._ST_HISTORBACK:
                    msg = self.qhist.get()
                    if msg is None:  # Conn broken during historical/backfilling
                        if self.p.historical:  # only historical
                            # Situation not managed. Simply bail out
                            self.put_notification(self.DISCONNECTED)
                            return False  # error management cancelled the queue
                        else:   #connction lost temporarily from LIVE data
                            # wait for restored code 1101/1102, instead of just game over
                            self._state = self._ST_LIVE
                            continue
    

    here is the log message.

    ***** STORE NOTIF: <error id=-1, errorCode=1100, errorMsg=Connectivity between IB and Trader Workstation has been lost.>
    ***** STORE NOTIF: <error id=-1, errorCode=1100, errorMsg=Connectivity between IB and Trader Workstation has been lost.>
    ***** DATA NOTIF: DELAYED
    ***** DATA NOTIF: DISCONNECTED
    ***** DATA NOTIF: LIVE
    ***** STORE NOTIF: <error id=-1, errorCode=1100, errorMsg=Connectivity between IB and Trader Workstation has been lost.>
    ***** DATA NOTIF: DELAYED
    ***** DATA NOTIF: DISCONNECTED
    ***** DATA NOTIF: LIVE
    ***** DATA NOTIF: DELAYED
    ***** DATA NOTIF: DISCONNECTED
    ***** DATA NOTIF: LIVE
    ***** STORE NOTIF: <error id=-1, errorCode=1100, errorMsg=Connectivity between IB and Trader Workstation has been lost.>
    ***** STORE NOTIF: <error id=-1, errorCode=1100, errorMsg=Connectivity between IB and Trader Workstation has been lost.>
    ***** STORE NOTIF: <error id=-1, errorCode=1100, errorMsg=Connectivity between IB and Trader Workstation has been lost.>
    ***** DATA NOTIF: DELAYED
    ***** DATA NOTIF: DISCONNECTED
    ***** DATA NOTIF: LIVE
    ***** STORE NOTIF: <error id=-1, errorCode=2103, errorMsg=Market data farm connection is broken:usfuture>
    ***** STORE NOTIF: <error id=-1, errorCode=2103, errorMsg=Market data farm connection is broken:usfarm>
    ***** STORE NOTIF: <error id=-1, errorCode=1102, errorMsg=Connectivity between IB and Trader Workstation has been restored - data maintained.>
    ***** STORE NOTIF: <error id=-1, errorCode=2104, errorMsg=Market data farm connection is OK:usfuture>
    ***** STORE NOTIF: <error id=-1, errorCode=2104, errorMsg=Market data farm connection is OK:usfarm>
    ***** DATA NOTIF: DELAYED
    ***** DATA NOTIF: DISCONNECTED
    ***** DATA NOTIF: LIVE
    ***** STORE NOTIF: <error id=-1, errorCode=2103, errorMsg=Market data farm connection is broken:usfuture>
    ***** STORE NOTIF: <error id=-1, errorCode=2104, errorMsg=Market data farm connection is OK:usfuture>
    ***** STORE NOTIF: <error id=-1, errorCode=2103, errorMsg=Market data farm connection is broken:usfuture>
    


  • @zzl, thanks for the feedback. Yeah, it's strange that different people get different messages during that IB server restart. But in the end it is important that you found a way to fix this thing.