Skip to main content

No project description provided

Project description

Tickermood

Tickermood is a Python package that provides market sentiment analysis for stock tickers based on news from multiple sources. It combines web scraping techniques with large language models (LLMs) using the LangChain and LangGraph frameworks to generate sentiment scores for given tickers.


📦 Installation

Install Tickermood via pip:

pip install tickermood

Note: To use Tickermood locally, Ollama must be installed. Alternatively, you can use the OpenAI API by providing your API key.


🚀 Usage

Programmatic Usage

from tickermood import TickerMood

ticker_mood = TickerMood.from_symbols(["AAPL", "GOOGL", "MSFT"])
ticker_mood.run()

CLI Usage

tickermood run AAPL GOOGL MSFT

This will:

  • Fetch the latest news for the specified tickers
  • Run LLM agents to analyze the news
  • Provide a sentiment score for each ticker

Results are stored in a SQLite database.

Tickermood Output


🗃️ Database

Tickermood creates a SQLite database in the current directory named tickermood.db if it doesn't already exist. It includes:

  • Sentiment ratings (e.g., Buy, Hold, Sell)
  • Price targets
  • Summaries of the fetched news articles

⚙️ LLM Backend Options

Default: Local LLM (Ollama)

  • Runs LLMs locally for free
  • Performance depends on your hardware

Optional: OpenAI API

  • Requires setting the OPENAI_API_KEY environment variable

Or, pass the key via CLI:

tickermood run AAPL GOOGL MSFT --openai_api_key_path /path/to/openai_api_key.txt

📝 License

MIT License

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

tickermood-0.12.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

tickermood-0.12.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file tickermood-0.12.0.tar.gz.

File metadata

  • Download URL: tickermood-0.12.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.11

File hashes

Hashes for tickermood-0.12.0.tar.gz
Algorithm Hash digest
SHA256 c5167aadc2c02bbbdd455cbff00a50ff2b382befc14c3d0d2ad3feee66a6b89e
MD5 83fb96455a4207facc25f839eeb2a70d
BLAKE2b-256 a2b0137e0acbb5bbad4d2ea6ce48a6dd8e8a8c4b0ff8e0ce63c1fa6d75524e9e

See more details on using hashes here.

File details

Details for the file tickermood-0.12.0-py3-none-any.whl.

File metadata

  • Download URL: tickermood-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.11

File hashes

Hashes for tickermood-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9409f73809dca71b1d5c9a51aeb8442d0d37467abc3e7461712c40f9516ef1c
MD5 ead6dc6a2237abd3d4075ce71667ee0d
BLAKE2b-256 9046a5dc6648bb8749f1df8cce06ddf75a7a59d82278b500573c617616243fab

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