OrderBook - subscribe_common_sec_md notifies observer on subscribe
This commit is contained in:
1 parent
6c0dc80d43
commit
e6cb97028b
1 file changed
+2
-1
@@ -585,7 +585,8 @@ namespace mbts.spark {
|
||||
public IObservable<SecurityImmutable?> subscribe_common_sec() => _sec_mon.SubscribeThrottled(_throttle);
|
||||
public IObservable<SecurityMD?> subscribe_common_sec_md() =>
|
||||
Observable.Create<SecurityMD?>(o => {
|
||||
SecurityMD? last_value = null;
|
||||
SecurityMD? last_value = common_sec_md;
|
||||
o.OnNext(common_sec_md);
|
||||
_sec_mon.common_value_changed += on_common_sec_changed;
|
||||
_security_md_map_changed += refresh;
|
||||
return Disposable.Create(() => {
|
||||
|
||||
Reference in new issue
Block a user