FastMM documentation
FastMM C++ API 0.6.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/data_source.hpp"
#include <cstddef>
#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; the whole file is read once at construction and next() allocates nothing.