Comments (8)
Hi @andresrogers, where are you retrieving those IDs from? If those are being retrieved from investpy
static files, just to let you know that those files are not consistent as those were statically generated some time ago, and have potentially changed. So the available data there may not be the actual one.
Anyway, let me know the Investing.com URL of the asserts corresponding to the investing_id=29490
and investing_id=40654
IDs so as to explore the issue further.
Thanks! 👍🏻
from investiny.
The ones that gave me an error are:
investing_id=26490 is META
search_assets(query="META", limit=1)
{'symbol': 'META',
'full_name': 'NASDAQ:META',
'description': 'Meta Platforms Inc',
'type': 'Stock',
'ticker': '26490',
'exchange': 'NASDAQ'}
investing_id=40654 is TLT
search_assets(query="TLT", limit=1)
{'symbol': 'TLT',
'full_name': 'NASDAQ:TLT',
'description': 'iShares 20+ Year Treasury Bond ETF',
'type': 'ETF',
'ticker': '40654',
'exchange': 'NASDAQ'},
It only gave me that error if I used '04/27/2000' as starting date, didn't get the error for less than 10 years difference to current date.
from investiny.
Ok @andresrogers let me try and I'll come back to you with a response 👍🏻 But I assume it may have something to do with #24 as it just happens whenever you use too distant dates.
from investiny.
open high low close
date
2012-05-18 42.049999 45.000000 38.000000 38.230000
2012-05-21 36.529999 36.660000 33.000000 34.029999
2012-05-22 32.610001 33.590000 30.940001 31.000000
2012-05-23 31.370001 32.500000 31.360001 32.000000
2012-05-24 32.950001 33.209999 31.770000 33.029999
... ... ... ... ...
2022-10-04 140.490005 142.390106 139.339996 140.279999
2022-10-05 138.240005 140.210007 134.779999 138.979996
2022-10-06 137.714996 141.449997 136.600006 139.070007
2022-10-07 136.759995 138.289993 132.440002 133.449997
2022-10-10 133.550003 135.940002 132.800003 134.100006
from investiny.
it gave error because this api doesnt have 2012-05-18 before data this stock
from investiny.
it gave error because this api doesnt have 2012-05-18 before data this stock
I thought something of the sort, but I believe the expected behaviour should be to return the earliest possible data without giving an error.
from investiny.
Thanks for posting that @ramakrishnamekala129, and yes, @andresrogers, the expected behavior is not to fail, so I'll check it and come back with a response ASAP
from investiny.
it gave error because this api doesnt have 2012-05-18 before data this stock
I thought something of the sort, but I believe the expected behaviour should be to return the earliest possible data without giving an error.
We should be creating a separate issue for this once the new version is released!
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
- Issue with Date and Price mapping 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.