|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
Abstract source of raw OHLCVTick values. More...
#include <tick_source.hpp>
Public Member Functions | |
| virtual | ~TickSource () noexcept=default |
| virtual std::optional< OHLCVTick > | read () noexcept=0 |
| Read the next OHLCVTick from the source. | |
| virtual bool | is_open () const noexcept=0 |
| Whether the source is still usable. | |
| virtual void | close () noexcept=0 |
| Close the source and release any OS resources. | |
Abstract source of raw OHLCVTick values.
TickIngester calls read() in its hot loop. Implementors must be thread-safe if called from the ingestion thread while other threads interact with the underlying resource (this is not required by the default implementations).
Definition at line 58 of file tick_source.hpp.
|
virtualdefaultnoexcept |
|
pure virtualnoexcept |
Close the source and release any OS resources.
Safe to call multiple times.
Implemented in srfm::stream::PipeTickSource.
|
pure virtualnoexcept |
Whether the source is still usable.
Returns false after a permanent error or after close() is called.
Implemented in srfm::stream::PipeTickSource.
|
pure virtualnoexcept |
Read the next OHLCVTick from the source.
Implemented in srfm::stream::PipeTickSource.