FastMM documentation
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
csv_source.hpp File Reference

CsvSource: hand-rolled parser for the row format documented in data_source.hpp (ts_ns,type,inst,side,price,qty,seq, optional header line, '#' comments). More...

#include "fastmm/backtest/binance_source.hpp"
#include "fastmm/backtest/data_source.hpp"
#include <cstddef>
#include <memory>
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

class  fastmm::bt::CsvSource
 

Namespaces

namespace  fastmm
 
namespace  fastmm::bt
 

Detailed Description

CsvSource: hand-rolled parser for the row format documented in data_source.hpp (ts_ns,type,inst,side,price,qty,seq, optional header line, '#' comments).

Prices and quantities are parsed exactly with Fixed::from_decimal. A file is streamed through CsvLineReader, read once at construction to validate it and count its rows, then again from the start; next() allocates nothing.