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

blockdag

Crypto News: BlockDAG’s X30 Miner Excels in Crypto Mining While Ethereum & XRP Prices Fall

Learn how BlockDAG’s X30 Miner remains a solid investment despite Ethereum’s price volatility and XRP’s declining trends.

Digital Assets

SEC seeks $5.3 billion fine for Terraform and co-founder Do Kwon

Federal regulators are pursuing a fine of $5.3 billion against Terraform Labs and its co-founder Do Kwon for defrauding investors, following a recent verdict that found them liable for a multi-billion-dollar fraud.

Digital Assets

El Salvador’s Bitcoin wallet hacked by CiberInteligenciaSV

El Salvador’s official Bitcoin wallet, Chivo, has faced another security setback as the hacker group CiberInteligenciaSV released parts of the wallet’s source code on the black hat hacking forum BreachForums.

blockdag

BlockDAG’s $19.8M Presale & Moon Keynote Teaser Place It Above KANG, SOL, & ARB as the Top Crypto Investment in 2024

Uncover the success behind BlockDAG’s $19.8M presale and learn what’s making it a more compelling investment than KangaMoon, Solana, and Arbitrum.

Fintech

Revolut to share user interactions data with ad agencies

Fintech giant Revolut is exploring new revenue streams by planning to share customer data with advertising partners.

Chainwire

Zircuit Staking Soars Past $2B TVL In Only 2 Months

Zircuit, a ZK rollup with parallelized circuits and AI-enabled security, today announced that its staking program has soared past $2B in TVL in only 2 months. 

Retail FX

PrimeXBT joins Financial Commission’s membership roster

The Financial Commission, an independent external dispute resolution (EDR) body, today announced the addition of cryptocurrency trading firm PrimeXBT as its latest member effective March 6, 2024.

Digital Assets

Ripple wants to reduce SEC’s $2 billion penalty to $10 million

Ripple Labs has responded to the U.S. Securities and Exchange Commission’s (SEC) recent demand for $2 billion in penalties, arguing that the amount should be substantially reduced to $10 million. The legal stance was disclosed in a court document filed late Monday.

blockdag

Analysts Go Bullish On BlockDAG After Its Surge to $0.005 And Unique Developer Platform That Goes Beyond Ethereum & BONK

Discover how BlockDAG’s unique low-code and no-code platforms offer more adaptability than Ethereum’s bull run and BONK’s fluctuating prices.

<