Skip to main content

fin-trend-analyzer analyzes financial news and sentiment to identify trends and risks in AI and tech stocks, providing structured insights for quick market assessment.

Project description

Fin-Trend-Analyzer

PyPI version License: MIT Downloads LinkedIn

Financial Trend Analyzer for AI and Technology Stocks

A Python package that analyzes financial news and sentiment to identify and summarize market trends and risks related to AI and technology stocks.

Overview

Fin-Trend-Analyzer is a linguistic tool that quickly assesses market perceptions and potential bubble indicators by processing text inputs from news articles, reports, or social media posts. It returns structured insights, such as key risk factors, sentiment scores, and trend summaries, using pattern matching to ensure consistent and reliable output.

Installation

pip install fin_trend_analyzer

Usage

from fin_trend_analyzer import fin_trend_analyzer

response = fin_trend_analyzer(user_input="This week's earnings report was outstanding.")

API Documentation

  • fin_trend_analyzer(user_input: str, api_key: Optional[str] = None, llm: Optional[BaseChatModel] = None) -> List[str]:

    • user_input: The user input text to process.
    • api_key: The API key for LLM7, default is None and will use the environment variable LLM7_API_KEY.
    • llm: The langchain LLM instance to use, default is ChatLLM7 from langchain_llm7.

    Example using a custom LLM instance (e.g., OpenAI, Anthropic, or Google):

    from langchain_openai import ChatOpenAI
    from fin_trend_analyzer import fin_trend_analyzer
    
    llm = ChatOpenAI()
    response = fin_trend_analyzer(user_input="This week's earnings report was outstanding.", llm=llm)
    

Rate Limits

The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If higher rate limits are needed, pass your own API key via environment variable LLM7_API_KEY or via passing it directly:

from fin_trend_analyzer import fin_trend_analyzer

response = fin_trend_analyzer(user_input="This week's earnings report was outstanding.", api_key="your_api_key")

You can get a free API key by registering at https://token.llm7.io/.

Author

Eugene Evstafev

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

fin_trend_analyzer-2025.12.21233059.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

fin_trend_analyzer-2025.12.21233059-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file fin_trend_analyzer-2025.12.21233059.tar.gz.

File metadata

File hashes

Hashes for fin_trend_analyzer-2025.12.21233059.tar.gz
Algorithm Hash digest
SHA256 9436ee28587f9573fee07bdd900cbce9ec16f567f0d3a8b45f04f95f09b6dd51
MD5 39b6d7cd58c52bd08fb3476b6fd21aa7
BLAKE2b-256 18c0cdfa9873e905fc43dc7f9f137869058c52d6768b9bf451990b49135f62b8

See more details on using hashes here.

File details

Details for the file fin_trend_analyzer-2025.12.21233059-py3-none-any.whl.

File metadata

File hashes

Hashes for fin_trend_analyzer-2025.12.21233059-py3-none-any.whl
Algorithm Hash digest
SHA256 0d94260cb5d61ef41611701c4141b3a88d35d19bae432a6a53ff120e136668d2
MD5 51efc77db501161a37c2162c2e7b10f2
BLAKE2b-256 eaf989a57d64962fa568a55e51e09915c31cb10b1a975bc59e75a5179a4a5ed0

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