Asynchronous Programming in Python Explained and Demonstrated

preview_player
Показать описание
#python #asyncio #aiohttp #alpha_vantage
We learn how to use asynchronous programming in python.

We learn what python is doing in the background so we can make more API Calls faster. We learn how to go from requests to aiohttp in our code, and refactor code for asynchronous programming. This means that our financial data and fintech data can be retrieved faster for our quantitative models.

✅✅ Donate ✅✅
I use donated funds to spend money on making fun & informational videos.
ETH Wallet address: 0x9680201d9c93d65a3603d2088d125e955c73BD65

😸😸Join the community!😸😸

All thoughts and opinions are my own.
Рекомендации по теме
Комментарии
Автор

this really helped me understand aiohttp better. What tripped me up was that the aiohttp site says to NOT create a new session every time. BUT I'm not sure that makes sense in all cases. Anyways, thank you.

DanSeipel
Автор

Hi Patrick. Thank you for this amazing video. You made the concept of working with async code very clear. I'm trying to test this out with the free version of the alpha vantage API and unfortunately they have enforced both a 5 calls/minute and 500 calls/month limits, so I was wondering if you could explain how to modify your code in order to use asyncio.semaphore and asyncio.wait to make as many calls a day as possible without violating alpha vantage limits. Thank you!

alejohernandez
Автор

Great video...saw both of your videos on asyncio...can you tell me how do we put the data fetched in dataframes?..or point me to some resource..thnx

jodhvirsingh
Автор

Thanks for sharing the video. I have tried the async functionality in a use case where I was expected to make 2500 odd api calls over a loop. The application exited with the following error message.

raise asyncio.TimeoutError from None

The application works fine when I am limiting the api calls to 50/60. Is there any configuration I need to apply or is there a limitation on the async functionalities to the number of executions made.

parthanathguitar
Автор

Wow, it is an amazing content. Thank you. I would like to know more about asyncio in Python. How did you learn it? Do you recommend some lecture or article?

nachoeigu
Автор

Also can you make a programme for arbitrage?

Diaryonwings