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

Institutional FX

Eurex reports mixed volumes for November 2022

Deutsche Börse’s derivatives-focused exchange, Eurex today said its total traded derivatives contracts grew by 10 percent in November, from 68.6 million to 75.3 million compared to the same month last year.

Digital Assets

AAX’s Nigerian customers storm local office amid withdrawal halt

According to the Nigerian media, angry consumers of the troubled crypto exchange AAX had stormed its local office hoping they can get their money back after the firm halted operations earlier in November.

Digital Assets

As SPAC bubble bursts, Circle terminates its $9 billion merger with Concord

USDC stablecoin issuer, Circle has terminated its planned $9 billion SPAC merger with publicly traded blank-check company Concord Acquisition Corp.

Institutional FX

Integral reports lowest FX volume in two years

Foreign exchange trading volumes dropped in November across Integral’s trading platforms as currency markets saw a relatively quiet period after consecutive months of strong trading activity.

Technology

CDEX: Avelacom announces connectivity to Cboe Europe Derivatives

“We anticipate that many of our customers from Asia will be particularly interested in getting exposure to pan-European products via just one venue, which CEDX offers.”

Retail FX

BUX acquires Spanish Ninety Nine’s retail brokerage unit

“Thanks to this acquisition, Ninety Nine users will have access to a wide range of services provided by BUX, such as investing in Spanish, European and US stocks, ETFs, cryptocurrencies, fractional investing and the BUX Savings Plan.”

Digital Assets

SEBA and HashKey partner to expand crypto in Hong Kong and Switzerland

SEBA Bank AG has announced a new strategic partnership with HashKey Digital Asset Group as part of both firm’s expansion efforts in Hong Kong SAR. 

Executive Moves

Broadridge appoints Martin Koopman as Chief Product Officer

“Martin has a proven record of driving product innovation both at Broadridge and at previous companies. His vision and proven ability to execute will be invaluable as we become the foremost SaaS provider to the financial services industry.”

Digital Assets

DAM rolls out Moonwalkers v1 testnet ahead of support for yield-generating collateral

“We want to champion innovation by making it easier to securely direct stablecoin liquidity away from Ethereum towards newer networks without the constant vulnerabilities posed by bridges. d20 will help accelerate the adoption flywheel of emerging networks, and this is our first step towards making our omnichain promise a reality.”

<