Skip to main content

Daily Losers strategy, uses py-alpaca-api for Alpaca Markets integration.

Project description

Py-Alpaca-Daily-Losers ๐Ÿ“‰๐Ÿ

Py-Alpaca-Daily-Losers is a Python package that integrates with the Alpaca Markets API to identify and analyze daily stock market losers. This tool leverages various market data indicators and advanced AI analysis to provide insightful trading information.

  • PyAlpacaApi is used to communicate with Alpaca Markets API.

Features ๐ŸŒŸ

  • Market Data Extraction: Retrieves daily stock market data using the Alpaca Markets API.
  • Technical Analysis: Analyzes data with indicators like Bollinger Bands and RSI.
  • News and Sentiment Analysis: Extracts and analyzes news for sentiment using OpenAI.
  • Notifications: Sends alerts via Slack.
  • Modular Design: Structured for easy maintenance and scalability.

Getting Started ๐Ÿ

Installation

Clone the repository and install dependencies:

git clone https://github.com/TexasCoding/py-alpaca-daily-losers.git
cd py-alpaca-daily-losers
pip install -r requirements.txt

Usage

Run the application:

python main.py

Tests

Run the test suite:

pytest

Project Structure ๐Ÿ“‚

py-alpaca-daily-losers/
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ poetry.lock
โ”œโ”€โ”€ py_alpaca_daily_losers/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ daily_losers.py
โ”‚   โ””โ”€โ”€ src/
โ”‚       โ”œโ”€โ”€ article_extractor.py
โ”‚       โ”œโ”€โ”€ global_functions.py
โ”‚       โ”œโ”€โ”€ marketaux.py
โ”‚       โ”œโ”€โ”€ openai.py
โ”‚       โ””โ”€โ”€ slack.py
โ”œโ”€โ”€ pyproject.toml
โ””โ”€โ”€ tests/
    โ””โ”€โ”€ __init__.py

Contributing ๐Ÿค

Contributions are welcome! Hereโ€™s how you can help:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a Pull Request.

License ๐Ÿ“œ

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments ๐Ÿ™

Special thanks to the contributors and the open-source community for their support and resources.

For more details, visit the repository.

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

py_alpaca_daily_losers-1.0.0.tar.gz (12.3 kB view hashes)

Uploaded Source

Built Distribution

py_alpaca_daily_losers-1.0.0-py3-none-any.whl (13.5 kB view hashes)

Uploaded Python 3

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