You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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 usinghttpx
withasyncio
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
The text was updated successfully, but these errors were encountered: