Add flag to enable/disable implied forwarding in simulator
This commit is contained in:
1 parent
21a47e2d43
commit
c331c8dde5
2 files changed
+5
-1
No files matched your search
@@ -3,5 +3,6 @@ package bts.config;
|
||||
|
||||
message ExchangeSim {
|
||||
optional bool merge_with_md = 1 [default=true];
|
||||
optional bool forward_implied = 2 [default = false];
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include "lib/os/os.h"
|
||||
#include "lib/config/protos/Ports.pb.h"
|
||||
#include "lib/config/protos/ExchangeSimCfg.pb.h"
|
||||
#include "lib/config/config.h"
|
||||
|
||||
#include <quickfix/FileLog.h>
|
||||
@@ -46,7 +47,8 @@ struct MDPlayer : md::IRelayWriter
|
||||
{
|
||||
MDPlayer (IMDPlayerObserver &obs,std::map<uint32_t,md::Security> &known_securities) :
|
||||
obs (obs),
|
||||
known_securities(known_securities)
|
||||
known_securities(known_securities),
|
||||
forward_implied(config::get<config::ExchangeSim>().forward_implied())
|
||||
{}
|
||||
|
||||
|
||||
@@ -109,6 +111,7 @@ struct MDPlayer : md::IRelayWriter
|
||||
}
|
||||
IMDPlayerObserver &obs;
|
||||
std::map<uint32_t, md::Security> &known_securities;
|
||||
bool forward_implied;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user