|
ITCHCPP 1.6.0
High-Performance NASDAQ TotalView-ITCH 5.0 Parser & Market-Data Platform
|
A clock that buckets a fixed amount of traded volume into each bar. More...
#include <bars.hpp>
Public Member Functions | |
| auto | bucket (const Trade &, std::uint64_t cumulative_volume, std::uint64_t) const noexcept -> std::uint64_t |
| Computes the bucket id for the current trade from cumulative volume. | |
Public Attributes | |
| std::uint64_t | volume_per_bar {1} |
A clock that buckets a fixed amount of traded volume into each bar.
|
inlinenoexcept |
Computes the bucket id for the current trade from cumulative volume.
| cumulative_volume | Total shares traded so far, including this trade. |
cumulative_volume / volume_per_bar. Definition at line 74 of file bars.hpp.
References volume_per_bar.
| std::uint64_t itch::analytics::VolumeClock::volume_per_bar {1} |