Comments (4)
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.
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.
from investiny.
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.
@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)
- Request to Investing.com API failed with error code: 503. HOT 2
- `exchange` param in `search_assets` has unexpected behaviour HOT 1
- pip install error in Linux HOT 4
- `volume` is returned even when `n/\a
- Send asynchronous requests to tvc6.investing.com to improve performance
- Issue with Date and Price mapping HOT 5
- Issue with max from date and limit of max daily data HOT 9
- Error 403 HOT 5
- solution for investiny 403 HOT 9
- Still get 403 with tvc6 API HOT 33
- Request to Investing.com API failed with error code: 403
- Possible way to fix 403 Error HOT 14
- ERROR: Could not find a version that satisfies the requirement investiny HOT 7
- 403 in search_assets as well HOT 7
- Error code: 403 with investpy and investiny HOT 3
- Can not install this library HOT 4
- Solution with cloudscraper
- Examples from the README fail
- Request to Investing.com API failed with error code: 403 HOT 25
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from investiny.