added mapping figi info onto common shares / warrants / options

This commit is contained in:
2025-12-04 21:03:55 +01:00
parent 787a08d6f1
commit b0a471ea84
13 changed files with 417 additions and 592 deletions

View File

@@ -6,7 +6,7 @@ use chrono::{NaiveDate, Datelike};
use std::collections::HashMap;
pub async fn scan_existing_chunks() -> anyhow::Result<Vec<ChunkInfo>> {
let dir = std::path::Path::new("economic_events");
let dir = std::path::Path::new("data/economic/events");
let mut chunks = Vec::new();
if dir.exists() {
@@ -45,7 +45,7 @@ pub async fn load_existing_events(chunks: &[ChunkInfo]) -> anyhow::Result<HashMa
}
pub async fn save_optimized_chunks(events: HashMap<String, EconomicEvent>) -> anyhow::Result<()> {
let dir = std::path::Path::new("economic_events");
let dir = std::path::Path::new("data/economic/events");
fs::create_dir_all(dir).await?;
// Delete all old chunk files to prevent duplicates and overlaps