alvarobartt / investiny

🤏🏻 `investpy` but made tiny
https://alvarobartt.github.io/investiny
MIT License
316 stars 36 forks source link

Getting incorrect Date and Prices #31

Closed KapsTrvl closed 2 years ago

KapsTrvl commented 2 years ago

image

image

I seem to be getting incorrect date and price mapping. I you check the images, 10/02/2022 and 10/09/22 are Sundays. Cross checked on investing.com and seems price output are moved back by a day.

** limited knowledge of running code, so might be doing something wrong at my end.. but will great if you take a look.

alvarobartt commented 2 years ago

Hi @KapsTrvl this is due to the UTC conversion currently taking place, but it has already been fixed at #27 (still a draft as there are more things to fix there), but you can already install it as pip install git+https://github.com/alvarobartt/investiny.git@data-limit 👍🏻

KapsTrvl commented 2 years ago

Hi @alvarobartt .. the mapping issue with AAPL got resolved post upgrading to latest version.

image

image

However see below for US10Y, getting weekend date 10/08/22 (Sat) and missing 10/10/22(Mon) -

image

image

Thanks

alvarobartt commented 2 years ago

Hi @alvarobartt .. the mapping issue with AAPL got resolved post upgrading to latest version.

image

image

However see below for US10Y, getting weekend date 10/08/22 (Sat) and missing 10/10/22(Mon) -

image

image

Thanks

Mmm that's true... can you please open a separate issue for that? I'll check what is investpy doing with the dates before returning those so as to stop this issue and make the data consistent. @KapsTrvl Thanks :hugs: