Trade the way you want with our API

Whether you're a commercial software, auto-trader or black-box quant developer, you can connect directly to TD AMERITRADE through its powerful Application Programming Interface (API). The API allows developers to enable their software to connect to TD AMERITRADE for trading, data and account management. The TD AMERITRADE API works for all clients who have TD AMERITRADE accounts.

TD AMERITRADE works closely with developers who use the API and provides dedicated technical support for the API community.

The API is language-independent, XML-based, simple and robust. TD AMERITRADE's API features include:

  • Trading - Submitting, canceling, modifying orders
  • Streaming data - Level I, Level II, News and Actives
  • Historical data - Daily and intraday
  • Account information - Balances, positions, transactions
  • Multi-product support - Stocks, options, ETFs, mutual funds
  • Wrappers and sample code - Provides easy integration into various programming environments
  • Proxy-friendly - Compatible with a variety of proxy servers and firewalls
  • Comprehensive documentation - Complete description and clear documentation available
  • Outstanding client support - Dedicated API specialists available to fully support your technical questions

Interested in integrating your trading application with TD AMERITRADE? Email us at apidev@tdameritrade.com.

Why API   Why TD AMERITRADE

Stand-alone

The API is pure protocol - it doesn’t require any other software to run alongside yours. Your software will connect directly to the TD AMERITRADE servers for a smooth and seamless operation.

Flexible and comprehensive

The API uses standard communication protocols for which libraries exist in every language. It's proxy-friendly, comprehensive and very compact, particularly for trading and streaming data.

Support

TD AMERITRADE provides dedicated technical support to API software developers to help you integrate the API with your products quickly and efficiently.

 

Straightforward pricing

You won't be charged any maintenance fees, and you'll get low, flat-rate $9.99 commissions on Internet equity trades, no matter how often you trade.*

Order execution

TD AMERITRADE's routing intelligence is combined with the speed of its proprietary routing technology. It dynamically sends orders to different market centers that seek to fill your order quickly and at the best available price.**

Flexible support, with outstanding service

Online. On the phone. At a branch. No matter where you are or what level of support you need, you can get it at TD AMERITRADE.

Learn more about our current API programs, partners and integrated tools.

Market volatility, volume and system availability may delay account access and trade executions.

*Trades executed in multiple market lots on the same trading day are charged a single commission. Trades partially executed over multiple trading days are subject to commission charges for each trading day.

**Price can change quickly in fast market conditions, resulting in an execution price different from the quote displayed at order entry. Execution price, speed, liquidity and account access are affected by many factors, including market volatility, size and type of order and available market centers.

TD AMERITRADE is obligated to seek the best price available for your order, taking into consideration current market conditions, such as NBBO, volume and liquidity. Price improvement is not guaranteed and will not occur in all situations. TD AMERITRADE acts as agent. Orders are filled by independent third parties.

Access to real-time data is subject to acceptance of the exchange agreements. Professional access and fees differ. For details, see our Professional Rates & Fees.