|
ITCHCPP 1.6.1
High-Performance NASDAQ TotalView-ITCH 5.0 Parser & Market-Data Platform
|
Reconstructs auctions from the NOII and Cross Trade message stream. More...
#include <auctions.hpp>
Public Types | |
| using | AuctionCallback = std::function< void(const Auction &)> |
Public Member Functions | |
| auto | set_auction_callback (AuctionCallback callback) -> void |
| Installs the callback invoked for each reconstructed auction. | |
| auto | process (const Message &message) -> void |
| Processes one ITCH message, emitting an auction on each cross. | |
Reconstructs auctions from the NOII and Cross Trade message stream.
Feed every message with process: NOII (I) messages update the latest imbalance state per security, and a Cross Trade (Q) finalizes an Auction using the executed cross price together with that stored imbalance context, which is delivered to the auction callback.
Definition at line 67 of file auctions.hpp.
| using itch::analytics::AuctionTracker::AuctionCallback = std::function<void(const Auction&)> |
Definition at line 69 of file auctions.hpp.
|
inline |
Installs the callback invoked for each reconstructed auction.
| callback | Function invoked with each Auction reconstructed from the stream. |
Definition at line 74 of file auctions.hpp.
|
inline |
Processes one ITCH message, emitting an auction on each cross.
| message | The ITCH message to process; only NOII and Cross Trade messages affect state. |
Definition at line 82 of file auctions.hpp.
References itch::analytics::make_imbalance_info(), itch::STOCK_LEN, itch::analytics::Auction::timestamp, and itch::to_string().