...
Code Block | ||||
---|---|---|---|---|
| ||||
/// Fired when recovery is ended /// @param subsItem Description of the instrument /// @param reason Reason of recovery virtual void InstrumentListener::onRecoveryStopped( SpectraSubscriptionItem const& subsItem, RecoveryReason reason ); |
It means that the recovery process has been done and Market Data is in a consistent state.
How MOEX Spectra Market Data Adapter reacts on Sequence Reset message
The new type of messages (a message 'Sequence Reset') was introduced in Spectra FAST protocol specification v 1.4.2.
MOEX Spectra Market Data Adapter handles Sequence Reset message in the following way:
A Sequence Reset message received in Incremental feed initiates recovery mechanism for all subscribed instruments.
In this case, callbacks Spectra::InstrumentListener::onRecoveryStarted() and Spectra::InstrumentListener::onBookReset() are fired.- Sequence filtering mechanism isn't applied to Sequence Reset messages.
Therefore, OnRecoveryStarted and OnBookReset callbacks would be fired for each sequence reset message (i.e. twice due to A-B arbitrage).