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

Digital Assets

Bybit exits UK market ahead of regulatory changes

Bybit is suspending its cryptocurrency services for users in the United Kingdom due to impending regulations from the country’s Financial Conduct Authority (FCA).

Digital Assets

Binance argues SEC trampled authority set by Congress

Binance, Binance.US, and Changpeng Zhao have jointly filed to dismiss a lawsuit brought by the Securities and Exchange Commission (SEC) in June.

Uncategorized

Oscar Asly replaces Rasha Gad as CEO of M4Markets Dubai

Seychelles-regulated brokerage firm M4Markets has secured a license from the Dubai Financial Services Authority (DFSA) after it has already incorporated its new subsidiary in the Dubai International Financial Center (DIFC).

Retail FX

Capital Index UK reports mitigated loss despite revenue drop

FCA-regulated brokerage firm Capital Index (UK) Limited has released its annual financial report for the year 2022.

Digital Assets

Mike Novogratz’s Galaxy Digital expands in Europe

Galaxy Digital, the New York-based cryptocurrency financial services company founded by Mike Novogratz, is expanding its presence in Europe by appointing Leon Marshall as its first European CEO.

Metaverse Gaming NFT

Turingum Partners with MarketAcross to Drive Web3 Adoption in Global and Japanese Markets

Global blockchain PR leader MarketAcross joins forces with Japanese Web3 specialist Turingum to mutually expand its market reach, aiming to fortify Turingum’s worldwide footprint and MarketAcross’s presence in the lucrative Japanese blockchain landscape.

Digital Assets

Binance to delist all stablecoins in Europe next year

During a public hearing with the European Banking Authority (EBA), an executive from Binance said that the exchange could ultimately delist stablecoins from its European platforms by June 30, 2024.

Industry News

“Unconscionable conduct”: ASIC fines National Australia Bank $2.1m for overcharging customers

NAB faces a $2.1 million penalty for unconscionable conduct, as the Federal Court rules the bank knowingly overcharged customers, and took over two years to rectify the situation.

<