|
ITCHCPP 1.6.0
High-Performance NASDAQ TotalView-ITCH 5.0 Parser & Market-Data Platform
|
A clock that buckets a fixed number of trades into each bar. More...
#include <bars.hpp>
Public Member Functions | |
| auto | bucket (const Trade &, std::uint64_t, std::uint64_t tick_index) const noexcept -> std::uint64_t |
| Computes the bucket id for the current trade from its tick position. | |
Public Attributes | |
| std::uint64_t | ticks_per_bar {1} |
A clock that buckets a fixed number of trades into each bar.
|
inlinenoexcept |
Computes the bucket id for the current trade from its tick position.
| tick_index | 0-based index of the trade within the stream. |
tick_index / ticks_per_bar. Definition at line 60 of file bars.hpp.
References ticks_per_bar.
| std::uint64_t itch::analytics::TickClock::ticks_per_bar {1} |