|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
Loads OHLCV data from CSV files and stdin streams. More...
#include <data_loader.hpp>
Static Public Member Functions | |
| static std::optional< std::vector< OHLCV > > | load_csv (const std::string &filepath) noexcept |
| static std::vector< OHLCV > | parse_csv_string (const std::string &csv_content) noexcept |
| static bool | validate_bar (const OHLCV &bar) noexcept |
Loads OHLCV data from CSV files and stdin streams.
Definition at line 35 of file data_loader.hpp.
|
staticnoexcept |
Load OHLCV bars from a CSV file on disk.
filepath — Path to a CSV file with header row (timestamp, open, high, low, close, volume)nullopt if the file cannot be openedDefinition at line 193 of file data_loader.cpp.
|
staticnoexcept |
Parse OHLCV bars from a CSV-formatted string (useful for testing).
Same format as load_csv — first line is treated as a header.
Parsed bars. Never returns nullopt; returns empty vector on completely empty or header-only input.
Definition at line 161 of file data_loader.cpp.
|
staticnoexcept |
Validate a single OHLCV bar.
A bar is valid if:
Definition at line 66 of file data_loader.cpp.