Skip to main content

Python client for tradier API

Project description

pytradier

pytradier is a forked version of tradier-python (0.1.4), that is no longer maintained by its owner. It 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 is 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 pytradier

Exemple

import os

from pytradier import TradierAPI

token = os.environ["TRADIER_TOKEN_SANDBOX"]
account_id = os.environ["TRADIER_ACCOUNT_ID1"]
t = TradierAPI(token=token, default_account_id=account_id)

profile = t.get_profile()
print(profile)

Version History

  • 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

pytradier-0.1.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

pytradier-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file pytradier-0.1.0.tar.gz.

File metadata

  • Download URL: pytradier-0.1.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pytradier-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1b9f9e6e73daa2b22e943a7850bca31b70c1cb48f7b9de62a6f0d8f8101907c
MD5 7cd781e1de4d6314ebb315693f0a295e
BLAKE2b-256 b93c49bf949d87470098e4ea0aa3c68f68a8f899bfea2ebf218713cc24372771

See more details on using hashes here.

File details

Details for the file pytradier-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytradier-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pytradier-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74a4978d81994f0f621f0203384350ea8e05468219e014db4ffa99911827b798
MD5 329c4aa4c20083d6599d8c03444499cc
BLAKE2b-256 97bb1dd13b755765ffbe90706deb41307590d6eb853b59f36269aa8cf932453f

See more details on using hashes here.

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