TD Amertrade Brokerage Setup - pattertj/LoopTrader Wiki

One-Time TD Ameritrade Setup

Using TD Ameritrade with LoopTrader requires a few steps outside of LoopTrader to get going:

  1. Have a TD Ameritrade brokerage account
  2. Setup a TD Ameritrade Developer account

After these three steps are completed, your TD Ameriprise account should be ready for LoopTrader.

Application Configuration

td-ameritrade-python-api Setup

Connecting to TD Ameritrade from LoopTrader leverages the td-ameritrade-python-api project. You will need to complete two steps for this package:

  1. Installation
  2. Authentication Workflow

LoopTrader Setup

The required configuration parameters should be set up in LoopTrader's config.yaml.

# TD Ameritrade Broker Variables
tdabroker:
   individual:
      clientid: ""
      account: ""
      url: ""
      credentials: ""
   ira:
      clientid: ""
      account: ""
      url: ""
      credentials: ""

This file should be renamed to "config.yaml" and updated with the values for your account.