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.

Source Distribution

td-ameritrade-api-1.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

td_ameritrade_api-1.0.0-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page