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

Fintech

TNS brings full-stack market data management to EMEA

“We are also delighted to have Ben Myers join our London-based TNS Financial Markets team as Head of Strategic Sales for EMEA, to bolster our presence in the region.”

Chainwire

Velocity Labs and Ramp Network facilitate fiat to crypto onramp on Polkadot via Asset Hub support

Velocity Labs is proud to announce a fiat to crypto onramp using Ramp Network through the integration of Asset Hub. Through it, Ramp will be able to service any parachain in the Polkadot ecosystem.

Executive Moves

INFINOX hires Mayne Ayliffe as Global Head of HR

“I look forward to working with our teams around the world to develop a strategic HR agenda that supports high performance and is centred on human motivation.”

Fintech

Sterling to provide risk and margin support for fixed income

“Firms must have the tools to effectively manage their risk across all asset classes. As yields rise, we see more exposure from clients in the fixed income space. We understand their need to measure and mitigate risk in a highly regulated environment.”

Retail FX

FXOpen launches HK share CFDs: Tencent, Alibaba, Xiaomi, Baidu

Hong Kong share CFDs will be commission-free for a limited period of time.

Retail FX

IronFX Celebrates an Award-Winning Start to 2024 with a Series of Industry Recognitions

IronFX, a global leader in online trading, has embarked on 2024 with a spectacular display of accolades that highlight its commitment to excellence and innovation in the competitive financial services sector.

Industry News

FIA urges CFTC to regulate use cases rather than AI itself

“We urge the CFTC to refrain from crafting new regulations that generally regulate AI because this approach presents certain well-known pitfalls. By approaching the issue from the perspective of AI as a technology, rather than the use case for the technology, corresponding regulations would likely necessitate a definition of AI. We anticipate that any attempt to properly define AI would be very challenging and require considerable resources.”

Education, Inside View

The Power of Public Relations in Finance: Shaping Perceptions & Building Reputation

It’s safe to say that the finance industry has faced its share of reputation crises over the years, from the 2008 financial collapse to the many scandals around irresponsible lending, political corruption, and even Ponzi schemes. 

Digital Assets

Crossover’s crypto ECN executed over $3 billion in Q1 2024

“Our growth is also driving continued increases in the percentages of trades that are ‘Order Crossing Order’ (OXO). Currently, roughly 10% of all trades executed on CROSSx are OXO, another differentiator in our platform’s capacity. This capacity and our unique execution model provide value to both the market maker and taker, as evidenced by our commercial model.”

<