You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit updates the price_sched logic to schedule all price_sched
requests in both managers at a fixed interval. The reason for this is:
Previously, the notify_price_sched messages were staggered over the slot
interval. However, as the updates are now batched there is no need to
do this. Therefore, we now send notify_price_sched messages at a fixed
interval.
When subscribe_price_sched messages come in, the associated price_sched
requests are added to the manager which contains the price information.
This is necessary, as the manager associated with the price_sched
request needs to be the same manager as that of the price object.
This means that the price_sched requests the user cares about could be
distributed between both managers.
Therefore, at any time, all price_sched requests in either manager need
to be sent at a constant interval, regardless of their connectivity
status. This ensures that price updates are always being submitted to
pythd. If a network isn't online, its price updates will simply fail to
be sent.
0 commit comments