|
ITCHCPP 1.6.0
High-Performance NASDAQ TotalView-ITCH 5.0 Parser & Market-Data Platform
|
A clock that buckets trades by wall-clock time (nanoseconds). More...
#include <bars.hpp>
Public Member Functions | |
| auto | bucket (const Trade &trade, std::uint64_t, std::uint64_t) const noexcept -> std::uint64_t |
Computes the bucket id for trade from its wall-clock timestamp. | |
Public Attributes | |
| std::uint64_t | interval_ns {1} |
A clock that buckets trades by wall-clock time (nanoseconds).
|
inlinenoexcept |
Computes the bucket id for trade from its wall-clock timestamp.
| trade | The trade whose timestamp determines the bucket. |
trade.timestamp / interval_ns. Definition at line 46 of file bars.hpp.
References interval_ns.
| std::uint64_t itch::analytics::TimeClock::interval_ns {1} |