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

Send asynchronous requests to tvc6.investing.com to improve performance #42

Open
alvarobartt opened this issue Oct 16, 2022 · 0 comments
Assignees
Labels
improvement Something has been improved

Comments

@alvarobartt
Copy link
Owner

alvarobartt commented Oct 16, 2022

In order to improve investiny's performance when retrieving historical data from Investing.com when the specified intervals imply retrieving data greater than 5000 points, we'll be using httpx with asyncio so as to make sure that those requests are run asynchronously rather than inside a for-loop.

We'll run a simple benchmark once done so as to compare both approaches to see which one performs better.

More information at https://www.twilio.com/blog/asynchronous-http-requests-in-python-with-httpx-and-asyncio courtesy of @sagnew

@alvarobartt alvarobartt added the improvement Something has been improved label Oct 16, 2022
@alvarobartt alvarobartt self-assigned this Oct 16, 2022
@alvarobartt alvarobartt changed the title Send asynchronous requests to tvc4.investing.com to improve performance Send asynchronous requests to tvc6.investing.com to improve performance Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something has been improved
Projects
None yet
Development

No branches or pull requests

1 participant