Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
Loading...
Searching...
No Matches
Classes | Namespaces
tick_source.hpp File Reference

Abstract tick source interface + concrete implementations. More...

#include "tick.hpp"
#include <chrono>
#include <deque>
#include <optional>
#include <string>
#include <thread>
#include <cerrno>
#include <cstring>
#include <fcntl.h>
#include <unistd.h>

Go to the source code of this file.

Classes

class  srfm::stream::TickSource
 Abstract source of raw OHLCVTick values. More...
 
class  srfm::stream::PipeTickSource
 Tick source that reads raw OHLCVTick bytes from a named pipe / FIFO. More...
 
class  srfm::stream::ReconnectingTickSource< Source >
 Wraps any TickSource with automatic reconnection on read failure. More...
 

Namespaces

namespace  srfm
 
namespace  srfm::stream
 

Detailed Description

Abstract tick source interface + concrete implementations.

Module: include/srfm/stream/ Owner: AGT-10 (Builder) — 2026-03-01

Responsibility

Abstract the byte-level transport from the TickIngester's validation and ring-push logic. The TickIngester accepts any TickSource* and calls read() in a tight loop.

Concrete implementations provided here

PipeTickSource — reads raw OHLCVTick bytes from a named pipe (Windows) or POSIX FIFO. QueueTickSource — in-process queue for unit-testing without I/O.

NOT Responsible For

• Tick validation (TickIngester::push_tick) • Ring-buffer push (TickIngester) • Connection retry (caller manages reconnect policy)

Definition in file tick_source.hpp.