as-symbols

Crates.ioas-symbols
lib.rsas-symbols
version0.5.0
sourcesrc
created_at2023-01-20 16:29:37.204434
updated_at2023-04-15 14:48:26.318312
descriptionA library for managing the list of financial symbols and related information
homepage
repositoryhttps://github.com/alensiljak/as-symbols
max_upload_size
id763452
size56,158
Alen Šiljak (alensiljak)

documentation

README

as-symbols

A library for managing the list of financial symbols and related information

Purpose

The purpose of this package is to read and provide a list of financial symbols together with their related information.

The main intended clients for the library are the PriceDb and IBFlex applications/libraries.

Symbols replaces the table in the PriceDb database and serves as the collection of symbols for which PriceDb retrieves and manages prices. IBFlex uses the symbols table to translate the symbols between IB symbols and the symbols used in Ledger journal.

Use

let path = PathBuf::from("tests/dummy.csv");
let list = read_symbols(&path).expect("parsed");

Format

The library reads the file containing the symbols data. Based on tests, the CSV format seems the simplest and the most-performant for this purpose.

The columns in the file are defined in the SymbolMetadata struct.

Commit count: 14

cargo fmt