Time & sales information with sim.

This commit is contained in:
Pedro Pinto committed 2018-03-22 09:30:32 -04:00
1 parent 0c3dde7663
commit e500bb57dd
3 files changed
+18

No files matched your search

@@ -433,6 +433,12 @@ void ExchangeSimApplication::update_md(std::string const &sec_desc) {
auto psz = md::PriceSize::from_double<7>(os::nan(), 0);
handle.update_ask(utils::TimeStamp::now(), psz, i);
}
auto new_trades = matcher.get_new_trades();
for (auto &t : new_trades)
handle.add_trade(utils::TimeStamp::now(),
md::PriceSize::from_double<7>(t.price.value(),t.quantity.value()),
datetime::ll_today());
}
}