Skip to content

Commit

Permalink
Adjust historical golden bar data for the quadrillion-th time
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
d-e-s-o committed Jul 27, 2022
1 parent aa8ce4b commit 8d08dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/v2/bars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ mod tests {
bars[0].time,
DateTime::<Utc>::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);
Expand Down

0 comments on commit 8d08dc7

Please sign in to comment.