Gets stock quotes for provided tickers
- As an investor I want to provide recent prices to my investment tracking spreadsheet
$ tickers --help
To see logs use RUST_LOG
env variable. Possible values are defined in
https://docs.rs/log/latest/log/enum.Level.html
You can pass path to a file ...
$ RUST_LOG=info rs-tickers example/watchlist.txt
... or pipe data from another process
$ cat example/watchlist.json | jq -c '.[]' | rs-tickers
It will create ticker.txt
files in /tmp/watchlist_quotes
(unless other dir
is given) that later can be read by the spreadsheet.
After fetching stock quotes their values can be loaded from file into a spreadsheet cell like this:
='file:///tmp/watchlist_quotes/ticker.txt'#$ticker.A1
$ cargo build --release && cargo install --path crates/cli/
Your binary is ~/.cargo/bin/tickers
.