Interactive Brokers Updates TWS API With $LEDGER Prefix Feature

Interactive Brokers has rolled out Trader Workstation (TWS) API 10.47, introducing updates to IB ALGO samples.

Home » Broker News » Interactive Brokers Updates TWS API With $LEDGER Prefix Feature

Interactive Brokers has rolled out Trader Workstation (TWS) API 10.47, introducing updates to IB ALGO samples, a new account value identification setting, and the removal of legacy fundamentals data request functionality.

The latest API release from Interactive Brokers includes an enhancement aimed at improving how API clients process account data updates. A new option has been added to the API Settings panel titled “Prepend ‘$LEDGER-‘ prefix to per-currency account values.”

The change addresses a long-standing issue where certain account value keys, such as “AccruedCash,” appeared both at the overall account level and at the per-currency level. Previously, developers could not reliably distinguish between the two data sources using the key names alone.

Interactive Brokers Updates TWS API With $LEDGER Prefix Feature

With the new setting enabled, all per-currency value keys will automatically receive the “$LEDGER-” prefix. For example, “CashBalance” would appear as “$LEDGER-CashBalance.” According to Interactive Brokers, this allows client applications to identify the scope and origin of account values more clearly when handling API account data subscriptions.

The feature applies to the API functions reqAccountUpdates and reqAccountUpdatesMulti, along with the updateAccountValue callback.

Interactive Brokers noted that the setting is disabled by default for users upgrading from previous API versions in order to preserve backward compatibility with existing client implementations. However, it is enabled by default for new users adopting the API for the first time.

Alongside the account data update, Interactive Brokers has refreshed the IB ALGO code samples included with the API package.

The release also removes support for Fundamentals Data Requests. Deprecated methods including reqFundamentalData, reqFundamentalsDataProtoBuf, cancelFundamentalData, and cancelFundamentalsDataProtoBuf, have been removed entirely. Related callbacks fundamentalData and fundamentalsDataProtoBuf have also been eliminated.

In addition, the tick type FUNDAMENTAL_RATIOS = 47 is no longer supported under TWS API 10.47.

Company Overview

Interactive Brokers caters to diverse requirements, offering competitive fees alongside a wide array of trading options such as stocks, ETFs, options, futures, and other global assets. It distinguishes itself as a top-tier brokerage, particularly appealing to traders and investors seeking a straightforward trading experience. With Interactive Brokers’ user-friendly platform, users can execute trades seamlessly, benefiting from competitive spreads that enhance cost-effectiveness. 

Discover more in our Complete Review.

Leave a Reply

Your email address will not be published. Required fields are marked *

Advertise with us

Stock Brokers Reviews