Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Fix recurrent bug with non-matching dates #44

Merged
merged 2 commits into from
Oct 16, 2022
Merged

Conversation

alvarobartt
Copy link
Owner

馃悰 Bug Fixes

  • Add timedelta(days=1) to datetime.now() objects when interval is either daily, weekly, or monthly.
  • Include a day-shift calculation, as, for some assets, their timestamps don't match the actual dates, e.g. U.S. 10Y.

馃敆 Linked Issue

#40

馃И Tests

  • Did you implement unit tests if required?

If the above checkbox is checked, describe how you unit-tested it.

Current unit tests were not passing due to the timezone conversions, but after implementing the day-shift mechanism, those are working back again, since the timezones didn't have anything to do with the bug.

Some assets such as the bond yields have incorrect timestamps shifted by one day, and doesn't seem to be related with timezone issues, as previously thought.
@alvarobartt alvarobartt added the bug Something isn't working label Oct 16, 2022
@alvarobartt alvarobartt self-assigned this Oct 16, 2022
@alvarobartt alvarobartt merged commit 8dd2610 into main Oct 16, 2022
@alvarobartt alvarobartt deleted the date-bug branch October 16, 2022 16:38
@alvarobartt alvarobartt linked an issue Oct 16, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with Date and Price mapping
1 participant