Quant is an AI-powered stock analysis tool developed by Improbability Labs Inc.. It leverages your own OpenAI API key to provide personalized and advanced technical analysis based on OHLCV (Open, High, Low, Close, Volume) data.
Access the live application at quant.improbability.io.
- AI-Driven Analysis: Utilizes OpenAI's GPT models to analyze stock data and provide trading recommendations.
- Technical Indicators: Calculates various technical indicators including ADX, RSI, MACD, OBV, Aroon, CCI, Parabolic SAR, and Ichimoku Cloud.
- Customizable Inputs: Users can input their own OpenAI API key, select the AI model, stock ticker, and time period for analysis.
- Web Interface: Built with Flask, providing an easy-to-use web interface for users.
- Secure and Private: Your OpenAI API key is not stored on the server; all processing is done securely.
Visit the live application: quant.improbability.io
- Python 3.8 or higher
- OpenAI API Key (You can get one from OpenAI)
- SendGrid API Key (Optional, for email functionalities)
- Git
git clone https://github.com/ImprobabilityLabs/quant.git
cd quant
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Create a .env file in the root directory and add the following:
LOG_PATH=/var/log/improbability/quant/
SECRET_KEY=your_secret_key
SENDGRID_API_KEY=your_sendgrid_api_key
GOOGLE_ANALYTICS_ID=your_google_analytics_id
GOOGLE_SITE_VERIFICATION=your_google_site_verification
BING_SITE_VERIFICATION=your_bing_site_verification
flask run
The application will be available at http://localhost:5000.
- Open the application in your web browser.
- Enter your OpenAI API key.
- Select the AI model (e.g., gpt-4).
- Input the stock ticker symbol (e.g., AAPL for Apple Inc.).
- Choose the stock period (1d, 1wk, or 1mo).
- Click Submit to receive the AI-generated analysis.
Python Packages:
- Flask
- yfinance
- pandas
- pandas_ta
- openai
- requests
- gunicorn
- Nginx (for serving the application)
- Systemd (for managing the application service)
- CertBot ( for free SSL certs )
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes with clear messages.
- Submit a pull request to the main branch.
While I'd love to help everyone, please note that support is offered sporadically and largely depends on my availability (and, let's be honest, my mood). I've invested time in thoroughly documenting each command within the scripts, aiming to make them as understandable and modifiable as possible for you.
"Many Bothans died to bring us this information."
If you appreciate this project and wish to honor the efforts (and the Bothans), consider sending a donation:
- Ethereum (ETH) Mainnet:
0x1F4EABD7495E4B3D1D4F6dac07f953eCb28fD798
- BNB Chain:
0x1F4EABD7495E4B3D1D4F6dac07f953eCb28fD798
Your support is greatly appreciated!
This project is licensed under the Apache License 2.0.
For any inquiries, please reach out to us:
- Website: improbability.io
- Email: support@improbability.io
- LinkedIn: Improbability Labs on LinkedIn
Rahim Khoja
- Email: rahim@khoja.ca
- LinkedIn: Rahim Khoja on LinkedIn
We welcome your feedback and are here to assist with any questions or issues you may have.