Place Order Samples
Currently POST and PUT request interactivity supply the entire JSON schema in the Try It Out section. In this guide, you'll find examples specific to Orders and Saved Orders for use in the Try It Out section. These would be sent as the POST data for Place Order.
Price History Samples
Samples assume a date of Wed June 1st, 2016 and that the Authorization header is set.
5 Day / 1 Minute, including today's data:
Simple Auth for Local Apps
This guide will help you get started with authentication without the need to run a Web server. This is especially useful for running a local application for personal use. Note that you will need your Redirect URI and OAuth User ID - see the Getting Started guide for more information on creating apps. Included below are some example values
Web Server Authentication (Node.js)
If you are trying to create a local application, here is a sample of how to handle authentication over localhost with Node.js
If you need to change your app's Redirect URI, note that at this time, the app must be deleted and re-created.
What you will need
You will need the software below. The version used for this sample is shown in parentheses.
Web Server Authentication (Python 3)
If you are trying to create a local application, here is a sample of how to handle authentication over localhost with Python
If you need to change your app's Redirect URI, note that at this time, the app must be deleted and re-created.
What you will need
You will need the software below. The version used for this sample is shown in parentheses.
Web Server Authentication (Python 2)
If you are trying to create a local application, here is a sample of how to handle authentication over localhost with Python
If you need to change your app's Redirect URI, note that at this time, the app must be deleted and re-created.
What you will need
You will need the software below. The version used for this sample is shown in parentheses.
Getting Started
Introduction
The developer portal allows you to create your own applications that can access TD Ameritrade & TD Ameritrade partner products and services. This guide will walk you through:
- Creating a Developer Account
- Registering an Application
- Navigating the Documentation
- Making Your First Request
Streaming Data
Quick Start
Make a request to the User Info & Preferences API's Get User Principals method to retrieve the information found in the javascript example login request below. This can be run directly in the browser console.