added spread marker to last trade display....lotta code for an S

This commit is contained in:
Kevin Darby committed 2019-05-02 17:55:46 -04:00
1 parent 61ac626542
commit d7a2ae4b09
20 files changed
+113 -63

No files matched your search

+3 -2
View File
@@ -306,12 +306,13 @@ public:
TimeStamp time(snapshot ? 0 : chan.time());
PriceSize price;
datetime::LLDateTime trade_time;
size_t volume;
if (handle.get_last_trade(time, price, trade_time, &volume)) {
size_t volume; int from_spread;
if (handle.get_last_trade(time, price, trade_time, &volume, &from_spread)) {
auto* trade = pupd->mutable_last_trade();
trade->set_key(handle.key());
trade->set_time(trade_time);
trade->set_total_volume(volume);
trade->set_from_spread(from_spread);
set_price(price, trade);
}
}