#library #finance #symbols

bin+lib as-symbols

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

8 unstable releases (3 breaking)

0.4.2 Jan 23, 2023
0.4.1 Jan 23, 2023
0.3.0 Jan 23, 2023
0.2.1 Jan 20, 2023
0.1.1 Jan 20, 2023

#15 in #symbols

Download history 176/week @ 2023-01-20 38/week @ 2023-01-27 39/week @ 2023-02-03 25/week @ 2023-02-10 45/week @ 2023-02-17 38/week @ 2023-02-24 11/week @ 2023-03-03 28/week @ 2023-03-10 8/week @ 2023-03-17

90 downloads per month
Used in 2 crates

GPL-3.0-or-later

20KB
123 lines

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.

Dependencies

~3–4MB
~87K SLoC