Tradier API client implemented in python
Project description
Tradier-Python
Tradier-python is a python client for interacting with the Tradier API.
Getting Started
You will need a Tradier account token which you can download from your account after logging in.
The client also takes an optional default_account_id which can make it easier to get information if you only have one account.
The default endpoint points to the sandbox. You will need to set the endpoint to the brokerage endpoint for live use.
Reference documentation for the API can be found here:
https://documentation.tradier.com/brokerage-api/overview/market-data
Installing
pip install tradier-python
Exmple
import os
from tradier_python import TradierAPI
token = os.environ["TRADIER_TOKEN"]
account_id = os.environ["TRADIER_ACCOUNT_ID"]
t = TradierAPI(token=token, default_account_id=account_id)
profile = t.get_profile()
print(profile)
Version History
- 0.1.3
- Include tags by default when getting orders
- 0.1.2
- Export models from the package
- 0.1.1
- Bug fixes
- 0.1.0
- Initial release
License
This project is licensed under the MIT License - see the LICENSE.md file for details
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
File details
Details for the file tradier-python-0.1.3.tar.gz
.
File metadata
- Download URL: tradier-python-0.1.3.tar.gz
- Upload date:
- Size: 379.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 891997bb972ab08d6574e352141b895757c33ac6181d9904b07ca52eab773be0 |
|
MD5 | 8b0e93d9db020f59ea9c6d8a73d57f17 |
|
BLAKE2b-256 | 6d4803de576d146a6ef5382d6a44baee4d726cc1865cdcc365dcba2a61f874a6 |
File details
Details for the file tradier_python-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: tradier_python-0.1.3-py3-none-any.whl
- Upload date:
- Size: 487.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09a178c17f943e03e19bd7648b841f02dc2cb0b12963e59c87a7e688c3316aea |
|
MD5 | 7a7266581357a4105b5dea14148a859b |
|
BLAKE2b-256 | 315be3b4d1c938b2a70b024046f85b7957809252917e2978e42a0b8b0476dd74 |