git cherry-pick add file
This commit is contained in:
1 parent
9011df884e
commit
39bf6ebaa5
8 files changed
+41
-7
No files matched your search
@@ -41,13 +41,17 @@ ChannelVolume& VolumeAtPriceState::_update_or_add(const SecurityChannel& channel
|
||||
}
|
||||
|
||||
void VolumeAtPriceState::on_new_trades(const ChannelReply& reply,
|
||||
MarketDataAuxiliaryServiceBase::Volume_at_priceStatefulPublisher& publisher){
|
||||
MarketDataAuxiliaryServiceBase::Volume_at_priceStatefulPublisher& publisher,
|
||||
uint32_t& n_trades,
|
||||
uint32_t& total_unique_levels){
|
||||
ChannelVolume& channel_vol=_update_or_add(reply.channel());
|
||||
for(const TradeMessage& t : reply.trade_log()){
|
||||
const VolumeAtPriceLevel& sec_level_vol=channel_vol.add_trade(t,
|
||||
_record_id);
|
||||
publisher.add_or_update(sec_level_vol);
|
||||
n_trades++;
|
||||
}
|
||||
total_unique_levels = _record_id;
|
||||
}
|
||||
|
||||
const bts::co2::MDRequest& VolumeAtPriceState::md_req() const{
|
||||
|
||||
Reference in new issue
Block a user