Interactive Brokers makes new API available for Python programmers

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

Industry News

European ETFs enjoy a trading boom

For Europe as a whole ETF turnover rose by an average of 46% in 2020 to stand at just under €683 billion, or $828 billion

Industry News

Virtu launches big data tools for the buyside

Leveraging existing data science capabilities is a clever retention tool, particularly if that data analysis can show your customers that you are doing a good job

Inside View

Beep beep. Why are FX brokers still using legacy technology? We all need to move on

FX, CFD and listed derivatives brokers need to take heed of how to engage brokers properly. We look inside the developments that are vital to the growth and future sustainability of brokers, and why legacy opinion and sitting on the fence will not work out. Here is the solution.

Industry News

OANDA adds new cross-border payment solution for companies in North America

The partnership combines OANDA’s deep-seated expertise in foreign exchange with Currencycloud’s best-of-breed payment technology and Shift Connect’s world-class customer support to offer a simple-to-use, reliable international money transfer solution for businesses, large or small.

Inside View

Inside view on endless crippling regulation in FX. Surely MiFID was enough?

It still looks as though the whole regulatory obsession with spot FX may be driven by the exchange lobby, hence if you can’t beat them join them – the only thing is of course that if most FX brokers brought their skill and tenacity to the multi asset market, they certainly would beat the exchanges hands down.

Industry News

FXOpen announces the launch of the ForexCup Trading Championship 2021

Global FX and CFD broker FXOpen has today announced they are offering traders the opportunity to compete with the best, to win 50,000 USD, with the launch of the ForexCup Trading Championship 2021.

Industry News

Citadel Securities dominates European FX, and is one of the most profitable businesses in the world

Non bank market makers are absolutely dominating the growth of FX order flow execution. Citadel Securities is now the largest internalizer in Europe by market share, a battle it is winning against Tier 1 banks alongside global leader XTX Markets. It is good to see the OTC sector holding its own.

Industry News

Playtech confirms it has been approached over the sale of Finalto

Finalto was described by the company as Playtech’s outstanding performer in H1 2020

Industry News

More greenwash: CME bends to the eco agenda by launching global emissions offset contract. Yawn….

CME Group has capitulated to the green agenda. Today, the company puts out tedious and jargonistic soundbites, saying that its new instruments will reduce emissions. Who will be interested and who will fall asleep?