global: snapshot

This commit is contained in:
nym21
2026-03-04 17:10:15 +01:00
parent 891f0dad9e
commit 9e23de4ba1
313 changed files with 9087 additions and 4918 deletions

View File

@@ -2,8 +2,7 @@ use std::collections::BTreeMap;
use brk_error::{Error, Result};
use brk_types::{
Cents, CheckedSub, Close, Date, Day1, Dollars, Height, High, Low, OHLCCents, Open,
Timestamp,
Cents, CheckedSub, Close, Date, Day1, Dollars, Height, High, Low, OHLCCents, Open, Timestamp,
};
use serde_json::Value;
use tracing::info;
@@ -69,8 +68,7 @@ impl BRK {
if !self.day1_to_ohlc.contains_key(&key)
|| ((key + self.day1_to_ohlc.get(&key).unwrap().len()) <= day1)
{
self.day1_to_ohlc
.insert(key, Self::fetch_date_prices(key)?);
self.day1_to_ohlc.insert(key, Self::fetch_date_prices(key)?);
}
self.day1_to_ohlc