An algorithmic trading platform
Project description
hyperdrive: Robinhood analytics and algorithmic trading |
---|
hyperdrive is a project to obtain stock data, create trading strategies, test against historical data (backtesting), and deploy strategies for algorithmic trading.
Getting Started
Prerequisites
You will need Python 3.8+ and a Robinhood account.
Place your credentials in a file named .env
in the project root directory.
Follow this structure:
RH_USERNAME=...
RH_PASSWORD=...
RH_2FA=...
IEXCLOUD=...
Installation
To install the necessary packages, run
pip install -r requirements.txt
Testing
python -m pytest -s -v test/test_filename -k function_name
Use
Making Scripts
To make a script, create a new .py file in the scripts/
dir with the following code:
import sys
sys.path.append('hyperdrive')
from Algotrader import HyperDrive # noqa autopep8
drive = HyperDrive()
Features:
- Broker authentication
- Automated data storage
- Backtesting engine
- Monte Carlo simulations
- Plotting and technical analysis
- Model training
- Strategy definition (start with buy and hold)
- Buy and sell functionality
- Live trading
- Documentation
Check out the Roadmap for progress ...
Auth
Using Robinhood 2FA, we can simply provide our MFA one-time password in the .env
file to login to Robinhood (via pyotp
).
Data
- Price and Volume
- Actions
- Sentiment
- News Sentiment
- Investor Sentiment
- Analyst Recommendations
- Company / Micro
- Profile (Sector, # of Employees)
- Earnings
- Cash Flow
- CEO Compensation
- Government / Macro
- Market
- General Volatility (VIX)
- Sector Performance
Strategy
- Buy and Hold
- Indicator/TA based
- Portfolio Optimization
Trading
- Buy and Sell
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
hyperdrive-1.0.7.tar.gz
(27.0 kB
view hashes)
Built Distribution
hyperdrive-1.0.7-py3-none-any.whl
(20.6 kB
view hashes)
Close
Hashes for hyperdrive-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6551b08d788a2945e7c2f4e6fed12a65e74bae5b4cd75641f7f08a20c966455 |
|
MD5 | 23f86fdb736d82b5193ea4f8a4a93f01 |
|
BLAKE2b-256 | b7ca452b5b02aa6ce08151d0f5766437978de92b17d3e4e90e93b18cde42f571 |