Like the video? Support my content by checking out Interactive Brokers using the link below:
https://www.interactivebrokers.com/mk...
Source Code and Written Tutorial:
https://hackingthemarkets.com/underst...
In this series, I show you how to use ib_async: a Python library designed to simplify coding with the Interactive Brokers API.
Timestamps
0:00 Overview: What is ib_async?
1:06 Demo of what we'll build
3:04 Support ib_async project, support my channel
4:43 Asynchronous Programming
6:03 Chess Exhibition Analogy
8:20 How does this relate to ib_async
9:03 Historical data fetch - synchronous version
12:28 Fetching for many symbols synchronously (slow)
14:43 Updated structured for multiple symbols
15:57 Making it async - asyncio.run(), async def
18:10 Using await and coroutines / tasks, chess analogy continued
20:02 Updating fetch data for async
20:20 Firing off many coroutines / tasks with asyncio.gather() (faster)
23:32 Wrapping Up and What's Next
----
Disclosures:
This content is provided by a paid Influencer of Interactive Brokers. Influencer is not employed by, partnered with, or otherwise affiliated with Interactive Brokers in any additional fashion. This content represents the opinions of Influencer, which are not necessarily shared by Interactive Brokers. The experiences of the Influencer may not be representative of other customers, and nothing within this content is a guarantee of future performance or success.
None of the information contained herein constitutes a recommendation, promotion, offer, or solicitation of an offer by Interactive Brokers to buy, sell or hold any security, financial product or instrument or to engage in any specific investment strategy. Investment involves risks. Investors should obtain their own independent financial advice and understand the risks associated with investment products and services before making investment decisions. Risk disclosure statements can be found on the Interactive Brokers website.
Interactive Brokers is a FINRA registered broker and SIPC member, as well as a National Futures Association registered Futures Commission Merchant. Interactive Brokers provides execution and clearing services to its customers. For more information regarding Interactive Brokers or any Interactive Brokers products or services referred to in this video, please visit www.interactivebrokers.com.
The projections or other information regarding the likelihood of various investment outcomes generated by the Tools mentioned in this video are hypothetical in nature, do not reflect actual investment results, and are not guarantees of future results. It is important to understand that these projections are based on certain assumptions and models, and actual outcomes may differ significantly. Please note that results may vary over time.
Any trading symbols, entities or investment products displayed or named in this podcast are for illustrative purposes only and are not intended to portray recommendations.
The examples discussed are purely for technical demonstration purposes, and do not constitute trading advice. Also, it is important to remember that placing trades in a paper account is recommended before any live trading.