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

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


You can find all of the other functions in the 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

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page