|
ITCHCPP 1.6.0
High-Performance NASDAQ TotalView-ITCH 5.0 Parser & Market-Data Platform
|
Classes | |
| struct | Auction |
| A reconstructed auction (cross) event. More... | |
| class | AuctionTracker |
| Reconstructs auctions from the NOII and Cross Trade message stream. More... | |
| struct | Bar |
| One OHLCV bar aggregated from the trade tape. More... | |
| class | BarBuilder |
| Builds OHLCV bars from a trade stream under a configurable clock. More... | |
| struct | ImbalanceInfo |
A usable, decoded view of a Net Order Imbalance Indicator (I) message. More... | |
| struct | TickClock |
| A clock that buckets a fixed number of trades into each bar. More... | |
| struct | TimeClock |
| A clock that buckets trades by wall-clock time (nanoseconds). More... | |
| class | Twap |
| Running time-weighted average price. More... | |
| struct | VolumeClock |
| A clock that buckets a fixed amount of traded volume into each bar. More... | |
| class | Vwap |
| Running volume-weighted average price. More... | |
Typedefs | |
| using | BarCallback = std::function< void(const Bar &)> |
| Callback invoked with each completed bar. | |
Functions | |
| auto | cross_type_name (char cross_type) -> std::string_view |
| A human-readable description of a cross type code. | |
| auto | make_imbalance_info (const NOIIMessage &msg) -> ImbalanceInfo |
Builds an ImbalanceInfo from a raw NOII message. | |
| auto | imbalance_direction_name (char direction) -> std::string_view |
| A human-readable description of an imbalance direction code. | |
| auto | spread (const book::Bbo &bbo) -> double |
| The bid-ask spread in price units, or NaN if either side is empty. | |
| auto | mid_price (const book::Bbo &bbo) -> double |
| The mid price ((bid + ask) / 2), or NaN if either side is empty. | |
| auto | queue_imbalance (const book::Bbo &bbo) -> double |
| Top-of-book queue imbalance in [-1, 1]. | |
| auto | depth_at_level (const book::L3Book &book, book::Side side, std::size_t levels) -> std::uint64_t |
Total displayed shares within the best levels price levels of a side. | |
| auto | order_flow_imbalance (const book::Bbo &previous, const book::Bbo ¤t) -> double |
| The order-flow imbalance between two consecutive BBO observations. | |
| using itch::analytics::BarCallback = typedef std::function<void(const Bar&)> |
|
inline |
A human-readable description of a cross type code.
| cross_type | The single-character cross type code (e.g. 'O', 'C', 'H', 'I'). |
cross_type, or "Unknown" if unrecognized. Definition at line 51 of file auctions.hpp.
References itch::indicators::FrozenMap< KeyType, Size >::at_or().
|
inline |
Builds an ImbalanceInfo from a raw NOII message.
| msg | The raw NOII message to decode. |
ImbalanceInfo populated from msg's fields. Definition at line 47 of file imbalance.hpp.
References itch::STOCK_LEN, itch::analytics::ImbalanceInfo::timestamp, and itch::to_string().
Referenced by itch::analytics::AuctionTracker::process().
|
inline |
A human-readable description of an imbalance direction code.
| direction | The single-character imbalance direction code (e.g. 'B', 'S', 'N'). |
direction, or "Unknown" if unrecognized. Definition at line 67 of file imbalance.hpp.
References itch::indicators::FrozenMap< KeyType, Size >::at_or().
|
inline |
The bid-ask spread in price units, or NaN if either side is empty.
| bbo | The best-bid-offer snapshot to compute the spread from. |
ask_price - bid_price, or NaN if either side has no resting order. Definition at line 23 of file microstructure.hpp.
|
inline |
The mid price ((bid + ask) / 2), or NaN if either side is empty.
| bbo | The best-bid-offer snapshot to compute the mid price from. |
Definition at line 35 of file microstructure.hpp.
|
inline |
Top-of-book queue imbalance in [-1, 1].
Positive values indicate more size resting on the bid than the offer (buy-side pressure); negative values the reverse. Returns NaN when there is no resting size at the top of either side.
| bbo | The best-bid-offer snapshot to compute the queue imbalance from. |
Definition at line 51 of file microstructure.hpp.
|
inline |
Total displayed shares within the best levels price levels of a side.
| book | The order book to query. |
| side | The book side (bid or ask) to sum depth for. |
| levels | Number of best price levels to include. |
Definition at line 67 of file microstructure.hpp.
References side.
|
inline |
The order-flow imbalance between two consecutive BBO observations.
Implements the standard order-flow-imbalance contribution of Cont, Kukanov and Stoikov: each side compares the new best price and size against the previous to attribute added or removed liquidity, and the offer contribution is subtracted from the bid contribution. Positive values indicate net buy-side flow.
| previous | The prior best-bid-offer snapshot. |
| current | The current best-bid-offer snapshot. |
Definition at line 87 of file microstructure.hpp.