mirror of
https://github.com/Magnus167/msyrs.git
synced 2025-08-20 07:20:01 +00:00
feat: add utils module and integrate metrics into save_indicators_as_csv function
This commit is contained in:
parent
4338c7d6d3
commit
9fe2c5d6fb
@ -1,3 +1,4 @@
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
pub mod download;
|
||||
pub mod utils;
|
@ -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
1
src/utils/mod.rs
Normal file
@ -0,0 +1 @@
|
||||
pub mod dftools;
|
Loading…
x
Reference in New Issue
Block a user