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

Texas Slaps Forex Scam with Cease and Desist Order

The Texas State Securities Board (TSSB) is following through on its promise to crack down on online trading fraud.

Industry News

JPMorgan Chase to open its UK neobank next week

JPMorgan Chase, the biggest US bank by total assets, will next week launch its City’s digital-only bank, which offers a range of savings and loan products under its ‘Chase’ brand in the UK.

Retail FX

TIOMarkets UK reports $78,461 in 2020 revenues

TIOmarkets’ FCA-regulated entity reported its financial results for the year ending December 31, 2020. The company posted a revenue figure that was nine times the amount it reported in the fiscal year of 2019.

Technology

Equiduct deploys big xyt’s data analytics for equity market structure

“Banks, asset managers, exchanges and market participants across the globe consistently rely on big xyt as an independent reference for equity market structure”.

Retail FX

BDSwiss partners with PayRetailers to address payment landscape in LATAM

PayRetailers’ suite of payment options via single seamless API integration will be available for BDS Markets Ltd. only.

Digital Assets

Coinbase applies for NFA license while awaiting SEC lawsuit

A license from the National Futures Association (NFA) would open the door to cryptocurrency derivatives trading.

Industry News

Euroclear acquires MFEX to enhance offering for fund distributors and fund managers

This transaction brings together two highly complementary businesses.

Industry News

Madoff Victim Fund sends $568 million to 31,000 victims of Ponzi scheme

Bernard L. Madoff used his position as chairman of BLMIS to steal billions from his clients.

Digital Assets

Revolut uses Bitcoin to Pay for its office space

Revolut, the company that is looking to build a financial super app, has used bitcoin to pay for its largest office space in Dallas, Texas to the flexible workspace provider WeWork.

<