All Projects → timkpaine → Tdameritrade

timkpaine / Tdameritrade

Licence: apache-2.0
Python interface to TD Ameritrade (https://developer.tdameritrade.com)

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Tdameritrade

Ttr
Technical analysis and other functions to construct technical trading rules with R
Stars: ✭ 238 (-44.26%)
Mutual labels:  finance, algorithmic-trading
py-investment
Extensible Algo-Trading Python Package.
Stars: ✭ 19 (-95.55%)
Mutual labels:  finance, algorithmic-trading
pyEX
Python interface to IEX and IEX cloud APIs
Stars: ✭ 407 (-4.68%)
Mutual labels:  finance, algorithmic-trading
Mixture model trading public
Stars: ✭ 166 (-61.12%)
Mutual labels:  finance, algorithmic-trading
AutoTrader
A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
Stars: ✭ 227 (-46.84%)
Mutual labels:  finance, algorithmic-trading
Mlfinlab
MlFinLab helps portfolio managers and traders who want to leverage the power of machine learning by providing reproducible, interpretable, and easy to use tools.
Stars: ✭ 2,676 (+526.7%)
Mutual labels:  finance, algorithmic-trading
gobacktest
event-driven backtesting framework written in golang
Stars: ✭ 179 (-58.08%)
Mutual labels:  finance, algorithmic-trading
Turingtrader
The Open-Source Backtesting Engine/ Market Simulator by Bertram Solutions.
Stars: ✭ 132 (-69.09%)
Mutual labels:  finance, algorithmic-trading
tdameritradeclient
A very simple api request client accessing TD Ameritrade API built in rust.
Stars: ✭ 33 (-92.27%)
Mutual labels:  finance, algorithmic-trading
Sequence-to-Sequence-Learning-of-Financial-Time-Series-in-Algorithmic-Trading
My bachelor's thesis—analyzing the application of LSTM-based RNNs on financial markets. 🤓
Stars: ✭ 64 (-85.01%)
Mutual labels:  finance, algorithmic-trading
Algorithmictrading
This repository contains three ways to obtain arbitrage which are Dual Listing, Options and Statistical Arbitrage. These are projects in collaboration with Optiver and have been peer-reviewed by staff members of Optiver.
Stars: ✭ 157 (-63.23%)
Mutual labels:  finance, algorithmic-trading
trading-rules-using-machine-learning
A financial trading method using machine learning.
Stars: ✭ 16 (-96.25%)
Mutual labels:  finance, algorithmic-trading
Pyportfolioopt
Financial portfolio optimisation in python, including classical efficient frontier, Black-Litterman, Hierarchical Risk Parity
Stars: ✭ 2,502 (+485.95%)
Mutual labels:  finance, algorithmic-trading
Reddit Hyped Stocks
A web application to explore currently hyped stocks on Reddit
Stars: ✭ 173 (-59.48%)
Mutual labels:  finance, algorithmic-trading
Alphalens
Performance analysis of predictive (alpha) stock factors
Stars: ✭ 2,130 (+398.83%)
Mutual labels:  finance, algorithmic-trading
portfoliolab
PortfolioLab is a python library that enables traders to take advantage of the latest portfolio optimisation algorithms used by professionals in the industry.
Stars: ✭ 104 (-75.64%)
Mutual labels:  finance, algorithmic-trading
Algobot
A C++ stock market algorithmic trading bot
Stars: ✭ 78 (-81.73%)
Mutual labels:  finance, algorithmic-trading
Gobacktest
event-driven backtesting framework written in golang
Stars: ✭ 113 (-73.54%)
Mutual labels:  finance, algorithmic-trading
fin
finance
Stars: ✭ 38 (-91.1%)
Mutual labels:  finance, algorithmic-trading
piker
#nontina, #paperhands,, #pwnzebotz, #tradezbyguille
Stars: ✭ 63 (-85.25%)
Mutual labels:  finance, algorithmic-trading

tdameritrade

Python interface to TD Ameritrade Api

Build Status Coverage License PyPI Docs

Getting Started

Install

Install from pip

pip install tdameritrade

or from source

python setup.py install

Docs

Major changes in the v0.1.0 update to the way tokens are handled.
You will still need the original authentication instructions, but the TDClient now takes the refresh token and client id, not the access token. A new session class handles token expiration and will automatically call a new token as needed.

It is recommended that you store these as environmental variables.

client_id = os.getenv('TDAMERITRADE_CLIENT_ID')
account_id = os.getenv('TDAMERITRADE_ACCOUNT_ID')
refresh_token = os.getenv('TDAMERITRADE_REFRESH_TOKEN')

tdclient = tdameritrade.TDClient(client_id=client_id, refresh_token=refresh_token, account_ids=[account_id])

See the tests\test_client.py file for examples on current usage.

Read the docs!

All functionality is available as methods on the TDClient object. For most methods, there is a convenience method to return the result as a pandas DataFrame.

Most data fetching methods accept the symbol as argument. For equities, this is just the ticker.

For different assets, utilize the search and instrument methods to lookup symbols. For options, you can utilize the options method.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].