Spark-608 - get the simulator to send markets down to the shell.
This commit is contained in:
1 parent
1653671764
commit
e652435890
8 files changed
+45
-34
No files matched your search
@@ -315,7 +315,8 @@ ExchangeSimApplication::convert(const FIX::ManualOrderIndicator &moi) {
|
||||
|
||||
ExchangeSimApplication::ExchangeSimApplication() :
|
||||
producer(co2::PLATFORM_SIM),
|
||||
handles()
|
||||
handles(),
|
||||
timer(utils::Dispatcher::background(), 200, [=](){ producer.heartbeat(); })
|
||||
{
|
||||
std::set<md::UserSymbol> symbols;
|
||||
md::get_system_md_symbols(symbols);
|
||||
@@ -324,10 +325,10 @@ ExchangeSimApplication::ExchangeSimApplication() :
|
||||
md::with_security_like(s,[this,s] (auto &fs) {
|
||||
auto new_s = s;
|
||||
*new_s.mutable_glbx()->mutable_security_desc() = std::string("sim:") + s.glbx().security_desc();
|
||||
*new_s.mutable_symbol() = std::string("sim:") + s.symbol();
|
||||
*new_s.mutable_symbol() = s.symbol();
|
||||
md::convert_security(new_s, fs, true);
|
||||
md::MDProducerHandle handle = producer.add_security(fs);
|
||||
auto sec_desc = securities::descriptor(s);
|
||||
auto sec_desc = securities::descriptor(new_s);
|
||||
handles.insert(make_pair(sec_desc, handle));
|
||||
});
|
||||
}});
|
||||
|
||||
Reference in new issue
Block a user