|
ITCHCPP 1.6.0
High-Performance NASDAQ TotalView-ITCH 5.0 Parser & Market-Data Platform
|
Running volume-weighted average price. More...
#include <vwap.hpp>
Public Member Functions | |
| auto | add (StandardPrice price, std::uint64_t shares) -> void |
Adds an execution of shares at price to the accumulation. | |
| auto | value () const -> double |
| The current VWAP, or NaN when no volume has been added. | |
| auto | volume () const noexcept -> std::uint64_t |
| The total shares accumulated so far. | |
| auto | reset () noexcept -> void |
| Clears the accumulation (start a new interval). | |
Running volume-weighted average price.
Accumulates the sum of price times shares and the total shares; the value is their ratio. Use reset at the start of each interval for an interval VWAP.
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |