Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bond data issue #607

Open
akashghaytadkar1109 opened this issue Sep 23, 2022 · 11 comments
Open

bond data issue #607

akashghaytadkar1109 opened this issue Sep 23, 2022 · 11 comments

Comments

@akashghaytadkar1109
Copy link

data = investpy.get_bond_historical_data(bond='India 10Y', from_date='02/01/2007', to_date = t1)
File "/root/anaconda3/lib/python3.9/site-packages/investpy/bonds.py", line 596, in get_bond_historical_data
raise ConnectionError(
ConnectionError: ERR#0015: error 403, try again later.

Please help me to fix this issue.

@adelRosal
Copy link

#601

@alvarobartt
Copy link
Owner

Hi @akashghaytadkar1109 as @adelRosal pointed out, everyone is actively looking into this issue so as to find a way to solve it, as Investing.com recently changed their APIs and included Cloudflare v2 protection, which seems hard to skip using Python... But we're working on it, also we've also contacted Investing.com so as to see whether we can get to an agreement in order to keep investpy alive 👍🏻

@akashghaytadkar1109
Copy link
Author

Thanks for your efforts. Please can you suggest me parallel api site for 10 years bond data in India.

@webdevzilla
Copy link

Thanks for your efforts. Please can you suggest me parallel api site for 10 years bond data in India.

You can use the API that I made for now: http://api.scraperlink.com/investpy/

For the India 10Y bond data, you would retrieve it like this: http://api.scraperlink.com/investpy/[email protected]&type=historical_data&product=bonds&from_date=01/01/2022&to_date=09/28/2022&time_frame=Monthly&country=india&name=India%2010Y

You can change the time_frame params as needed (i.e. Daily, Weekly, Monthly).

Hope it helps!

@alvarobartt
Copy link
Owner

Thanks for your efforts. Please can you suggest me parallel api site for 10 years bond data in India.

Hi @akashghaytadkar1109, you can use investiny in the meantime, which is a solution that I've created to retrieve the historical data of any Investing.com asset using the Investing.com ID. I'm not responsible for the usage of alternate solutions that may violate Investing.com terms of use like @webdevzilla's project to bypass the Cloudflare protection.

@webdevzilla
Copy link

I'm not responsible for the usage of alternate solutions that may violate Investing.com terms of use like @webdevzilla's project to bypass the Cloudflare protection.

If their only requirement is to "mention the source", I don't believe my workaround would violate their terms either.

However, I tested investiny and it works perfectly! Hopefully it continues that way, but it doesn't hurt to have my API as a quick backup if it stops. Redundancy is always good!

Great work on finding a solution @alvarobartt @ramakrishnamekala129 🙏

@alvarobartt
Copy link
Owner

I'm not responsible for the usage of alternate solutions that may violate Investing.com terms of use like @webdevzilla's project to bypass the Cloudflare protection.

If their only requirement is to "mention the source", I don't believe my workaround would violate their terms either.

However, I tested investiny and it works perfectly! Hopefully it continues that way, but it doesn't hurt to have my API as a quick backup if it stops. Redundancy is always good!

Great work on finding a solution @alvarobartt @ramakrishnamekala129 🙏

That's right @webdevzilla it's a nice solution, just keep that in mind!

I'll check it in another branch or something and let you know! Thanks.

@akashghaytadkar1109
Copy link
Author

akashghaytadkar1109 commented Oct 3, 2022 via email

@akashghaytadkar1109
Copy link
Author

akashghaytadkar1109 commented Oct 3, 2022 via email

@alvarobartt
Copy link
Owner

alvarobartt commented Oct 3, 2022

Hi @akashghaytadkar1109 I'd suggest you use investiny instead as it's providing the data as a Python dictionary, there's still work in progress there, but currently is stable and open to issues/contributions.

In case you're wondering how to retrieve the Investing.com ID (param named investing_id in investiny) check the following comment's answer at alvarobartt/investiny#3 (comment)

@akashghaytadkar1109
Copy link
Author

akashghaytadkar1109 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants