Skip to content
All library documents

Interactive Brokers Demo and Paper Accounts for API Testing

Article Quant Q&A · Author: Ryan Kitlitz

Summary

The document compares Interactive Brokers demo and personal paper-trading accounts for testing Trader Workstation API applications. Demo accounts provide simulated data and can help check connectivity or exercise account types, but the answers describe limitations in order fills, product behavior, and persistence of transaction history. Paper trading more closely reflects a real account, with real-time market data available when the relevant subscriptions and fees are in place; orders still receive simulated fills. Paper account settings and trading permissions generally follow the associated live account.

The answers also note that demo accounts may expose account configurations, such as advisor or portfolio-margin types, beyond the single personal paper account, and may permit products that the linked live account is not approved to trade. IB data is sampled, updates are not continuous, and historical downloads are limited, so it may not represent a complete market feed. The discussion is based on user reports and product behavior at the time, and features may change. It advises separating strategy research on historical data from testing API-specific behavior against IB’s systems.

Key ideas

  • Demo accounts use simulated data and are mainly useful for checking connections and some API behavior.
  • Paper accounts can provide real-time data with subscriptions, but order fills remain simulated.
  • Paper account trading permissions and configuration generally inherit settings from the linked live account.
  • Demo account variants can provide access to additional account types for API behavior checks.
  • Sampled updates and limited historical data constrain how closely IB data represents the market.

Tags

Full text
# What is the difference between the Interactive Brokers demo account and a personal paper trader account?


# What is the difference between the Interactive Brokers demo account and a personal paper trader account?












I'm interested in testing my trading strategy using the Interactive Brokers API for Trader Workstation.

A demo account is provided to play with TWS for free, but if I fund a real account I will be provided with a paper trading account to use. I believe that the demo account uses simulated or old market data, whereas a paper-trading account will use real-time data.

Other than the delay in market data, are there any restrictions or limitations to using the TWS demo account compared to a paper-trading account?

## Answer by brian (score 8)

https://quant.stackexchange.com/a/8745

The demo account sends simulated data, not delayed data. It is unusable for just about anything except to see if your connections are working.

The paper account sends real time data if you subscribe to it and pay data fees. It has all the functionality of a real account except fills are simulated. I believe it's worst case fills as in you have to trade through your price.

Delayed data is unavailable through the API.

There is no built in way to test strategies, you have to write them somehow.

Try http://finance.groups.yahoo.com/group/TWSAPI/ for more info (join group required).

There's no real need to open an account to test strategies if you plan on using historical data. The only testing specifically to IB should be testing your API code.

There are some intricacies to IB's data you should be aware of. It is sampled and only sends updates a few times per second. You won't get 100% accurate data from them. There is only limited historical data available for download.

edit: Delayed data is now available http://interactivebrokers.github.io/tws-api/market_data_type.html

Yahoo group moved to https://groups.io/g/twsapi

## Answer by Castedo (score 1)

https://quant.stackexchange.com/a/8762

brian covered the main differences in the first post, but one additional difference is that you only get one personal paper trading account that is probably an individual non-FA (financial advisor) account (or perhaps vice-versa, you have a paper FA account but not an individual paper account).

In contrast there is an individual non-FA demo account (login edemo) AND also an FA (financial advisor) demo account (login fdemo). In addition there is also a portfolio margin demo account.

So if you want to test your IB API application against API behavior with both FA and non-FA accounts (and perhaps even portfolio margin), then the demo accounts can provide testing beyond what just one paper account makes possible.

## Answer by Ilya (score 1)

https://quant.stackexchange.com/a/8775

I want to add several points to the statements above.

- Demo account does not allow to make transactions for some asset classes. It does not fill even MKT order for options.

- I haven't checked, but I'm sure they do not simulate expiration procedures of futures and options.

- As by default TWS restarts once a day, you will lose all transaction history every day, as well as your P&L. Similarly you lose it after each log off.

Using paper trading account allows you to trade as if it is real account.

## Answer by GabeBrady (score 0)

https://quant.stackexchange.com/a/37324

The primary difference is:

> Trading permissions, market data subscriptions, base currency, and other account configurations are the same as specified for your regular account.

https://www.interactivebrokers.com/en/software/am/am/manageaccount/aboutpapertradingaccounts.html

The key here is trading permissions.

For example: if your Live Account has not been approved to trade futures, you will not be able to trade futures with your Paper Trading Account. Permissions are carried across from your Live Account to your Paper Trading Account.

However, all products are available in the Demo Account. Interactive Brokers (IB) track your activity in the Demo Account by associating it with the email address you enter each time to access the Demo Account (not the username and password you create during the application process, this gets you into your Paper Trading Account).

IB then check this activity to determine your trading experience with a product when you apply to have Trading Permissions upgraded.

Source: IB Rep over Chat

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.