From 8d08dc73e9b2ce9a15442b65545007a0f547724a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Tue, 26 Jul 2022 20:04:04 -0700 Subject: [PATCH] Adjust historical golden bar data for the quadrillion-th time One would think at some point they would have it eventually, but the circus continues and Alpaca is still messing with historical data. This time the change is so significant that not even our integer truncation can save the day. This change adjusts our golden values for the historical bar data test once again. --- src/data/v2/bars.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/v2/bars.rs b/src/data/v2/bars.rs index 45ffc11a..5d326778 100644 --- a/src/data/v2/bars.rs +++ b/src/data/v2/bars.rs @@ -354,8 +354,8 @@ mod tests { bars[0].time, DateTime::::from_str("2018-12-04T05:00:00Z").unwrap() ); - assert_eq!(bars[0].open.to_u64(), Some(175)); - assert_eq!(bars[0].close.to_u64(), Some(171)); + assert_eq!(bars[0].open.to_u64(), Some(174)); + assert_eq!(bars[0].close.to_u64(), Some(170)); assert_eq!(bars[0].high.to_u64(), Some(176)); assert_eq!(bars[0].low.to_u64(), Some(170)); assert_eq!(bars[0].volume, 41344313);