Skip to main content

A python wrapper for the TD ameritrade API

Project description

TD Ameritrade API

Setup instructions

Make sure you are using python 3.6 or greater, preferably python 3.7 I also highly recommend using python-dotenv to keep your api information safe. To do this, create a .env file with the REFRESH_TOKEN, CONSUMER_KEY, and ACCOUNT_ID variables and install python-dotenv.

How to use

from dotenv import load_dotenv
import td_ameritrade_api as td
from os import getenv

load_dotenv()
client = td.client(getenv("REFRESH_TOKEN"), getenv("CONSUMER_KEY"), getenv("ACCOUNT_ID"))

print(client.quote("AAPL"))

You can find all of the other functions in the td_client.py file. There is no documentation yet, but it will be coming soon.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for td-ameritrade-api, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size td_ameritrade_api-1.0.4-py3-none-any.whl (7.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size td-ameritrade-api-1.0.4.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page