Giter Club home page Giter Club logo

Comments (8)

alvarobartt avatar alvarobartt commented on May 27, 2024

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=40654IDs so as to explore the issue further.

Thanks! 👍🏻

from investiny.

andresrogers avatar andresrogers commented on May 27, 2024

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.

alvarobartt avatar alvarobartt commented on May 27, 2024

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.

ramakrishnamekala129 avatar ramakrishnamekala129 commented on May 27, 2024
              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.

ramakrishnamekala129 avatar ramakrishnamekala129 commented on May 27, 2024

it gave error because this api doesnt have 2012-05-18 before data this stock

from investiny.

andresrogers avatar andresrogers commented on May 27, 2024

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.

alvarobartt avatar alvarobartt commented on May 27, 2024

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.

alvarobartt avatar alvarobartt commented on May 27, 2024

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)

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.