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

Retail FX

Banxso announces 8.7% interest rate on deposits in South Africa

“With Banxso, they can enjoy the benefits of both worlds – earning competitive interest and having the freedom to trade, all within the same platform.”

Industry News

FINRA to publish transaction details in U.S. Treasury securities

“Consistent with our longstanding practice, FINRA is introducing greater transparency in a calibrated and careful manner, benefiting liquidity and resilience in this critical market while also mitigating potential information leakage concerns.”

Institutional FX

OpenYield launches “cheap and easy” fixed income trading for brokers

“We’re on a mission to make bonds cheap and easy to trade, and are excited about the opportunity to build generational capital markets infrastructure.”

Digital Assets

Sumsub and Mercuryo publish a guide for VASPs: “Mastering Travel Rule Compliance”

“At Sumsub, we’ve concentrated our efforts on filling the gap in understanding the complexity of Travel Rule regulation and helping organizations find the best solution to stay safe and compliant while minimizing costs and avoiding potential risks of non-compliance. This guide we created with Mercuryo, our trusted partner, is the ultimate navigation tool all VASPs can consult.”

Digital Assets

Bitget Wallet Leads with Record Swap Volume & New Crypto Innovations

This week, Bitget Wallet achieved a milestone by surpassing Metamask with a record 388,757 Swap order transactions, securing the global lead. The significant 7-day trading volume, almost 68,000 more than its rival, underscores its liquidity and user trust. This robust activity signals Bitget Wallet’s prominent role and reliability in the dynamic crypto market.

Digital Assets

Embarking on a Digital Currency Journey

Imagine you’ve stumbled upon a treasure map, leading you to untold riches hidden in the vastness of the internet. Instead of gold coins and jewel-encrusted goblets, this treasure comes in the form of digital currencies, the modern-day loot coveted by many.

Reviews

Traders Union Experts Share The Trading Analyst Review For 2024

Navigating options trading in rapidly shifting markets poses a considerable challenge. This is where options trading alert services become invaluable. They aid traders in keeping abreast of evolving opportunities and market trends. In this assessment, Traders Union experts scrutinize The Trading Analyst alert service to ascertain its efficacy. 

Digital Assets

BlockDAG’s Presale Achieves $9.9M: Aiming For A 5000-Fold ROI As Cardano’s Price Rises And Fantom Launches Sonic

Explore Cardano’s surge, Sonic’s efficiency, and why BlockDAG’s growth makes it the top crypto choice. A deep dive into the future of blockchain investments.

Digital Assets

US, UK probe $20 billion Tether transfers tied to Russian exchange.

U.S. and UK authorities are investigating the movement of $20 billion in the USD-pegged stablecoin tether (USDT) through Moscow-based exchange Garantex.

<