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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file td-ameritrade-api-1.0.4.tar.gz.
File metadata
- Download URL: td-ameritrade-api-1.0.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
813043ac58c78bf891e585fdccfd29758e4fd277abaaa06194eccdad97b46a25
|
|
| MD5 |
db9251d31bc6d43f32f79cdf8904d646
|
|
| BLAKE2b-256 |
1458c898aca843ca71204cbdf49ac3f10688015d527fa3076ddac5277985aac3
|
File details
Details for the file td_ameritrade_api-1.0.4-py3-none-any.whl.
File metadata
- Download URL: td_ameritrade_api-1.0.4-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7d00da0fd5544fb2fba2bbce077438ca7db957f04c6832909f74b5484e2ecf1
|
|
| MD5 |
0be8f8ee4ace32da094e032716831541
|
|
| BLAKE2b-256 |
61f30f357cb9ca258d0632d905eff6090f6ceeda444983b7532c13bbf8fab2c8
|