PyAlly
PyAlly copied to clipboard
Ally Invest API Module for Python3
PyAlly Trading Library
Take control of your Ally Invest finances through Python. Buy stocks and options in an instant, and stay up-to-date with your investments.
Ally Invest's investment platform is perfect for smaller investors who value a mature web/mobile interface, and low brokerage fees. I made this wrapper so that I could more easily integrate the platform with Python, and reduce the need for human oversight on my account.
After setting up API keys, PyAlly can provide the basic/essential Ally brokerage transaction functions from a simple python request.
Make sure to read the docs!
Version 1.2.0
We have added more features in this latest minor release! There have also been numerous contribution and pipeline improvements not listed below. See the commit history for details.
- Added News and Options Searching
- https://github.com/alienbrett/PyAlly/commit/a12bf634dab79284e9f261df77598ac2d330d1fb
- Added Trade Streaming
- https://github.com/alienbrett/PyAlly/commit/bb98583d26cc03980a8cd365309b60e5ac5a9272
- https://github.com/alienbrett/PyAlly/commit/1f301692bc0d28a8c94e7c80a53190360a534ecb
Note that parts of the news searching is broken. Ally's contractor who supplies information for news articles has had trouble suppling some information.
Planned Features
- Multi-leg orders
Dev Environment Setup
To setup your dev environment, simply run:
make venv # run once
source venv/bin/activate # run for every new terminal
This will install the library requirements for debugging as well as some useful tools to lint, test, build, document, and deploy. See the Makefile
for a list of useful targets.
Dev Environment Teardown
To exit the dev environment, simply run:
deactivate
or exit
/ logout
your terminal.
Fixing Your Dev Environment
If your dev environment gets hosed, exit it, remove the venv
directory, and run the setup above again.
Contributors
Message me on Github or send an email if you enjoyed the project or thought it could be improved. Anyone with an interest, with an eye for detail, is welcome to contribute.
If you're dying to buy me a beer, I accept venmo at @alienbrett. That said, feel no obligation; this is free software and it's here for you to use.