feat: add utils module and integrate metrics into save_indicators_as_csv function

This commit is contained in:
Palash Tyagi 2024-11-14 02:02:44 +00:00
parent 4338c7d6d3
commit 9fe2c5d6fb
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
pub mod download;
pub mod utils;

View File

@ -26,10 +26,14 @@ fn main() {
println!("Retrieving indicators for {} tickers", sel_tickers.len());
start = std::time::Instant::now();
let all_metrics: Vec<String> = ["value", "grading", "eop_lag", "mop_lag"]
.iter()
.map(|x| x.to_string())
.collect();
let res = jpamqs_download.save_indicators_as_csv(
JPMaQSDownloadGetIndicatorArgs {
tickers: sel_tickers.clone(),
metrics: all_metrics,
..Default::default()
},
"./data/",

1
src/utils/mod.rs Normal file
View File

@ -0,0 +1 @@
pub mod dftools;