Giter Site home page Giter Site logo

Comments (4)

alvarobartt avatar alvarobartt commented on May 17, 2024

I've already checked and it seems it's not due to the timezone conversion to UTC, I can also see data for 10/08/2022 while it shouldn't as your correctly pointing out @KapsTrvl, but I'll explore the issue further as the API that we're using is https://tvc4.investing.com/ not Investing.com defaults API, so the results may vary from the ones shown in the website... Anyway I'll explore this further and come back with an answer ASAP 🤗

from investiny.

alvarobartt avatar alvarobartt commented on May 17, 2024

Ok, it seems that all the dates are being shifted by one day when transforming the timestamps into datetime objects so I'll keep on exploring that... See that the screenshot below shows the retrieved dates as well as the close value, compared to the ones available at Investing.com, there seems to be a 1-day difference.

image

image

from investiny.

alvarobartt avatar alvarobartt commented on May 17, 2024

Ok this is directly related to the timezone conversion done internally by Investing.com so that the results are presented in the timezone they operate, not in UTC format, so I've got a way to fix that, so consider this to be done later today, and investiny v0.7.0 to be released!

from investiny.

alvarobartt avatar alvarobartt commented on May 17, 2024

@KapsTrvl make sure to install the latest release as pip install investiny --upgrade and the following code should work fine!

from investiny import historical_data

data = historical_data(investing_id=23705, from_date="10/04/2022", to_date="10/14/2022")
print(data["date"])

from investiny.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.