How to create a TD Ameritrade API key for automated trading

If you’re planning on developing an app to automate your favorite trading strategies, or you’ve gotten your hands on a copy of Trade For Me and you’re just getting started, you will need to create a TD Ameritrade Developer account and register an application to get an API key (consumer key). In this article you will learn step-by-step how to complete your account set up.

Step One: Register

TD Ameritrade Developer register

In your browser, navigate to and click the “Register” link at the top of the page. When prompted to choose a username, ignore the rules provided (special characters, spaces, etc.). They are inconsistent. The best choice for your username will be letters only with no spaces or special characters.

Step Two: Activate your account

TD Ameritrade Developer email

After completing the registration form, you will receive an email with a link to activate your account.

Step Three: Create a profile

TD Ameritrade Developer profile page

Fill in your profile details. In this step you will create a password, add your first and last name, add your address, choose a timezone, and accept the terms and conditions.

Step Four: Add an app

TD Ameritrade Developer add app screen

Click “Add a new App”

TD Ameritrade Developer App Details Screen
  • Give your app a name
  • Enter a callback URL. The callback URL will be the URL to which you are redirected after successful authentication. If you are using Trade For Me, this is the app URL on your local network, and after authentication, you’ll be redirected to the app and the access and refresh tokens will be saved in your local database.
  • Describe the purpose of your app
  • Enter an order limit

Step Five: Copy your API Key

TD Ameritrade Developer API Key

After creating the app, you will be able to open it and retrieve your API Key (Consumer Key).

Congratulations! You have completed your app configuration in the TD Ameritrade Developer website. Now it’s on to the next step. Making money!

Find other tips, tricks, and content on these other fine social media platforms. Please subscribe/follow to stay informed of the latest content!

How to install thinkorswim (TOS) studies

thinkorswim study installation steps

Installing the studies into your thinkorswim platform takes only a few moments. After purchase, you will be provided a download link. The downloaded file will be in a .zip archive format and you will need to extract the contents of the .zip file before installation. On a mac, simply double-click the zip archive to extract it into a folder with the same name as the .zip. On a Windows computer, right-click and choose “Extract All” from the context menu. You will be provided with an option where you would like to save the extracted files.

1. Select studies menu, then edit studies

thinkorswim edit studies

2. Choose the import option

thinkorswim import

3. Navigate to and choose the name_of_script_here_STUDY.ts file from the .zip archive

thinkorswim (tos) navigate

4. Rejoice! You’ve successfully installed the thinkorswim (tos) study into your platform!

Find other tips, tricks, and content on these other fine social media platforms. Please subscribe/follow to stay informed of the latest content!