Interactive Brokers makes new API available for Python programmers

Maria Nikolova

Beginning with release 9.73, a new Python API client is now included.

FinanceFeeds has been updateing its readers on the improvements that Interactive Brokers Group, Inc. (NASDAQ:IBKR) has been introducing to its proprietary Trader Workstation (TWS) platform. Now it is time to take a look at another tech aspect of enhancing the TWS functionality which is targeted at professional developers – the TWS API.

The TWS API is considered to be simple and powerful interface through which the clients of Interactive Brokers can automate their trading strategies, request market data and monitor their account balance and portfolio in real time. The target user base of the TWS API are experienced professional developers that want to enhance the current TWS functionality.

The TWS API works with the TWS platform and the IB Gateway. From the TWS API perspective, the IB TWS platform and IB Gateway are identical: both represent a server to which it can open a socket connection. On the other hand, from the user perspective, the IB Gateway is a lightweight application through which one can only make use of the TWS API. Unlike the TWS’ rich user interface, the IB Gateway does not offer the end user anything else than the very basic features to handle API connections. However, the IB Gateway does not need to be restarted every 24 hours and can therefore be used to run indefinitely.

Starting with release 9.73, a new Python API client is now included. After users install this beta release on their computer, they can find Python API components in the following locations:

  • Python API sample code – located in the samples/Python folder in the API installation directory (typically IB_973);
  • Python source code – located in the source/pythonclient folder in the API installation directory.

Let’s note the importance the launch of native Python API by Interactive Brokers. Until recently, one had to use third-party solutions for the purpose, an approach which always comes with risks.

Python as a programming language has a variety of advantages, such as its simplicity and its wide applicability – it can be used on multiple platforms and systems. Then, there is, of course, the fact that many of the IT giants have shown preference for Python. The list of disadvantages include (unfortunately) that Python is slow.

When comparing various programming languages for its API, Interactive Brokers still highlights Java as the most popular one.

Read this next

Chainwire

BloFin Sponsors TOKEN2049 Dubai and Celebrates the SideEvent: WhalesNight AfterParty 2024

Platinum Spotlight: BloFin dazzles as the top sponsor of TOKEN2049 Dubai, elevating its status with the electrifying WhalesNight AfterParty 2024. Celebrate blockchain innovation and join the night where industry leaders and pioneers connect.

Institutional FX

Eddid helps HK crypto platforms with Bitcoin and Ether ETFs

The brokerage firm will help SFC-licensed virtual asset trading platforms with Bitcoin and Ether ETFs in Hong Kong.

Digital Assets

Cboe can save up to $15 million by closing crypto exchange

“Refocusing our digital asset business enables us to refine our strategy, leveraging our core strengths in derivatives, technology excellence and product innovation to help maximize opportunities for our business and deliver efficiencies for Cboe and our clients.”

Fintech

Sumsub adopts Europe’s new KYC standards for crypto

“Businesses are facing a rising regulatory tide where properly preparing for compliance is crucial. There is now a simple choice, whether to implement solutions that can deliver this, or instead risk significant financial and reputational damages.”

Chainwire

Bybit Web3 Launches Industry’s First Bitcoin Layer 2 Airdrop Campaign, Paving the Way for a New Bitcoin Era

Bybit, one of the world’s top three crypto exchanges by volume, is excited to announce that Bybit Web3 is launching the industry’s first Bitcoin Layer 2 Airdrop campaign through its Airdrop Arcade.

Retail FX

Vantage observes results of US$100,000 donation to UNHCR

Vantage’s US$100,000 donation has helped approximately 788 refugees, internally displaced persons (IDPs), and returnees in 2023 alone.

Executive Moves

Tradition hires Michel Everaert to integrate data science and AI

“I am excited about the potential this offers, and look forward to building relationships and working with teams across the global business.”

Retail FX

IBKR extends US Treasury bond trading to 22 hours per day

US Treasury bonds are highly sought after by investors seeking stability and security in their portfolios as these instruments are often considered one of the safest investment options. 

Market News

Navigating Yen Depreciation and Euro Resilience in Global Markets

Amidst the persistent depreciation of the Japanese yen against the US dollar, pressure mounts on Japanese policymakers to translate their verbal assurances into tangible actions.

<