Data Resync
When running a Strategy in RuntimeMode.Live
or RuntimeMode.LiveTestnet
, there is a chance for reconnection to our datasource servers.
This could be caused by a myriad of reasons.
There may be times where disconnection may occur for a long period of time, such that the strategy 'misses' new incoming data from the servers. If this happens, when the strategy successfully reconnects, a 'resync' will occur.
Upon 'resync', your data_map
and split_data_map
will be updated to have all the latest data that has been 'missed' and the Runtime will invoke
your on_datasource_interval
and/or on_candle_closed
once, provided there have been data 'missed'.
Periodic Resync
This is an experimental feature that is accessible through the RuntimeConfig
field periodic_resync
. Setting this to True,
will enable this feature.
Periodic resync will resync the data_map
every one hour.
In the future, a change will be made such that the RuntimeConfig
field will accept an int
that denotes number of hours.