A client for the TDA API
Project description
TDAmeritrade Client
A tool that links to the TDA API to perform requests.
Installation:
- Run
pip install tdameritrade-client
within a virtual environment
Usage
The package has two uses as of now:
- Run the oauth flow against a developer app.
- Use an access token to request account positions.
To get started, use the following code snippet:
from tdameritrade-client import TDClient
td_client = TDClient(acct_number=<your account number>,
oauth_user_id=<the id registered to the TD app you would like to authenticate with>,
redirect_uri=<the redirect URI registered to the TD app>,
token_path=<optional path to an existing access token>)
td_client.run_auth()
acct_info = td_client.get_positions()
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file tdameritrade-client-0.0.1.tar.gz
.
File metadata
- Download URL: tdameritrade-client-0.0.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eda9d34db422738559dad9dcfbd8beb629a7d227f169ee6115027c39929ea130 |
|
MD5 | e5dd57dd8188f0250499484958f58de3 |
|
BLAKE2b-256 | 690d17aed532090ef9b666e9f1c1872690ee561f840eb26eea66ea9897aee3ec |
File details
Details for the file tdameritrade_client-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: tdameritrade_client-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb5cbdd377e68fa925d2614fc5e02679436707b5d4ef7146a08c865e641e6c25 |
|
MD5 | a8f48a93d37eae4956537d68247df3aa |
|
BLAKE2b-256 | c464c6244de58460abab4d5f6a613629c98b212ba208340d9eafb7e45e3c0448 |