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

MetaMask developer sues SEC over regulatory overreach

Ethereum ecosystem developer Consensys Software has filed a lawsuit against the U.S. Securities and Exchange Commission (SEC), challenging the agency’s regulatory actions concerning Ethereum and its related services.

Institutional FX

Tradeweb pulls in $408.7 million in Q1 revenue amid record trading volumes

Tradeweb Markets Inc. (NASDAQ: TW) has just announced its financial results for the first quarter of 2024, which showed a robust performance for the three months through March.

Institutional FX

BGC Group valued at $667 million following investment by major banks

BGC Group announced that its exchange platform, FMX Futures, is now valued at $667 million after receiving investments from a notable consortium of financial institutions.

blockdag

Transforming a Bankrupt Investor into a Cryptocurrency Giant; Can BlockDAG Replicate Ethereum’s Meteoric Rise With 30,000x Predictions?

The realm of cryptocurrency investing presents a thrilling blend of challenges and opportunities. The legendary gains by early Ethereum investors serve as a powerful lure for those seeking the next major breakthrough.

Digital Assets

SEC delays decision on spot bitcoin options ETFs

The U.S. Securities and Exchange Commission (SEC) has postponed its decision on whether to authorize options trading on spot bitcoin ETFs, extending the review period by an additional 45 days. The new deadline for the SEC’s decision is now set for May 29, 2024.

Market News, Tech and Fundamental, Technical Analysis

Solana Technical Analysis Report 25 April, 2024

Solana cryptocurrency can be expected to fall further toward the next support level 130.00, target price for the completion of the active impulse wave (i).

Digital Assets

Morgan Stanley to sell bitcoin ETFs to clients

Morgan Stanley may soon allow its 15,000 brokers to recommend bitcoin ETFs to their clients, as reported by AdvisorHub.

Digital Assets

Masa Announces Comprehensive AI Developer Ecosystem with 13 Dynamic Partners Focused on Leveraging Decentralized Data and Large Language Models

In a groundbreaking development, Masa, the global leader in decentralized AI and Large Language Models (LLMs), proudly announces the launch of its AI Developer Ecosystem, partnering with 13 visionary projects.

Financewire

Kinesis Mint becomes the official partner for the House of Mandela

Kinesis Mint, the certified independent precious metals mint and refinery of Kinesis, the monetary system backed by 1:1 allocated gold and silver, has been appointed the exclusive coin producer for the House of Mandela.

<