Skip to content
Huy Tran edited this page Feb 25, 2021 · 6 revisions

Download postman here : https://www.postman.com/downloads/

Import Postman Collection

Import tdameritrade-api.postman_collection.json to your postman using the import feature.

Example SS:

Now you should see the collection in your left navigation, expand the collection for further details.

Example :

Import Environment

Import tdameritrade-public-example.postman_environment.json to postman.

  1. Navigate to top right for Manage Environment
  1. Bottom right should have an import button

  2. Select tdameritrade-public and make a copy for your personal settings and set the envs. More information on the envs can be found in the collection description.

Retrieve Access Token and Set refresh_token to TD_REFRESH_TOKEN env

  1. Navigate to Get Access Token requests and use the OAuth2 Get New Access Token. This will take you through the OAuth2 flow and upon successful login should retrieve the access token and refresh token.
  1. Navigate to Manage Token to see your refresh_token
  1. Set TD_REFRESH_TOKEN env by right clicking on the refresh_token selection from your Manage Token drop-down

Sample Request

Navigate to stock orders and Open Long Stock Limit and hit send. Request will send an order of single share at .01 limit price for TEST_SYMBOL