Skip to main content

Module csv

Module csv 

Source
Expand description

Stream OHLCV candles out of a CSV file.

The reader is generic over the column layout, but ships with a sensible default (“timestamp,open,high,low,close,volume”) that matches the standard Binance / Yahoo Finance / kaggle dataset format.

The reader is defensive about real-world files: a leading UTF-8 byte-order mark is stripped, surrounding whitespace is trimmed from every field, and a file whose header does not name the required columns is rejected with a clear Error::Malformed instead of silently consuming its first data row.

Structs§

BomStripReader
A std::io::Read adapter that transparently skips a leading UTF-8 byte-order mark.
CandleReader
Streaming OHLCV CSV reader.
DefaultRow
Default OHLCV CSV row layout.