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-2.2.8.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_alpaca_daily_losers-2.2.8-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file py_alpaca_daily_losers-2.2.8.tar.gz.

File metadata

  • Download URL: py_alpaca_daily_losers-2.2.8.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for py_alpaca_daily_losers-2.2.8.tar.gz
Algorithm Hash digest
SHA256 8001c4cb6e91f276ced0a17a4734cd25ddf7d7496c001c4fc164097559600d8a
MD5 8fb48fa346565d72337a6b9ee3158ef0
BLAKE2b-256 70353c1235a72d1e7b75aeb8af71563b6a37643075455b8edac86e0ab36a5d1a

See more details on using hashes here.

File details

Details for the file py_alpaca_daily_losers-2.2.8-py3-none-any.whl.

File metadata

  • Download URL: py_alpaca_daily_losers-2.2.8-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for py_alpaca_daily_losers-2.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c28b0c9f69d17ecfdfd438e22d1e4f62ee7ff59f77351d36442f584b77776370
MD5 18de090b75c3f65ebeb7dba782ee0d34
BLAKE2b-256 698d3cf9afac1c95fd1169a0cef905bfcf63f66dad5e4812b17f691ff1461bab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page