|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
Single OHLCV bar tick from the market data feed. More...
#include <tick.hpp>
Public Attributes | |
| double | open {0.0} |
| Opening price of the bar. | |
| double | high {0.0} |
| Highest price of the bar. | |
| double | low {0.0} |
| Lowest price of the bar. | |
| double | close {0.0} |
| Closing price of the bar. | |
| double | volume {0.0} |
| Traded volume over the bar. | |
| std::int64_t | timestamp_ns {0} |
| Bar timestamp, nanoseconds since epoch. | |
Single OHLCV bar tick from the market data feed.
All price fields are in quote-currency units (e.g., USD). Volume is in base-currency units (e.g., contracts or shares). timestamp_ns is nanoseconds since Unix epoch (UTC).
Invariants (enforced by tick_is_valid()):
| double srfm::stream::OHLCVTick::close {0.0} |
| double srfm::stream::OHLCVTick::high {0.0} |
| double srfm::stream::OHLCVTick::low {0.0} |
| double srfm::stream::OHLCVTick::open {0.0} |
| std::int64_t srfm::stream::OHLCVTick::timestamp_ns {0} |
| double srfm::stream::OHLCVTick::volume {0.0} |