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
Close
Hashes for td-ameritrade-api-1.0.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e652e869f1bd54744e89ebd991c7b1baed2e1ca68d90865b52f8f7f1153f53a1 |
|
MD5 | 6830c102f7893451b90246f3c6d23998 |
|
BLAKE2b-256 | a7eb46a76a3c05f2ecb082c00f14220e4f449e98d8bed37d881545ecb9e3453a |