Skip to content

fahimulhaque/TickerAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

TickerAgent Logo

TickerAgent

TickerAgent is an AI-driven market intelligence and competitive analysis system designed to help users aggregate, analyze, and gain insights from various market sources. By utilizing powerful language models and vector search capabilities, it streamlines the complex process of extracting competitive intel and producing comprehensive reports.

License Python Version Node Version Docker Ask DeepWiki

🌟 Key Features

  • Local-First Privacy: Run fully locally using Ollama (qwen models), ensuring no sensitive proprietary queries leak to third parties.
  • Cloud Scale: Hot-swap to cloud LLMs (Groq, OpenAI, Anthropic) via LiteLLM simply by changing your .env keys.
  • Asynchronous Ingestion: Heavy scraping and data ingestion are offloaded to Celery background workers.
  • Semantic Memory: Robust memory graphs and continuous vector ingestion powered by Postgres pgvector.
  • Beautiful Dashboard: A Next.js responsive UI providing quick access to market insights.

πŸ— Architecture Overview

TickerAgent's containerized architecture strictly separates the ingestion layer, the brain (LLMs/Vector DB), and the user interface.

graph TD;
    UI[Next.js Dashboard] <--> |REST API| API[FastAPI Gateway];
    API <--> CORE[Core Engine]
    CORE <--> |Vector Search| DB[(PostgreSQL pgvector)];
    CORE <--> |Cache/Queues| REDIS[(Redis)];
    CORE <--> |Inference| LLM{LLM Gateway LiteLLM};
    LLM <--> |Local| OLLAMA[Local Ollama Models];
    LLM <--> |Cloud| API_EXT[Groq / OpenAI / Gemini];
    
    WORKER[Celery Workers] <--> |Message Queue| REDIS;
    WORKER <--> DB;
    WORKER --> |Asynchronous Scrapes| DATA_SOURCES((Data Sources));
Loading

πŸ“‹ Prerequisites

To run TickerAgent locally, you must have the following installed on your host machine:

Note: If you plan to contribute to the codebase without using the Docker environment, you will also need Python 3.10+ and Node.js 18.17+.


πŸš€ Getting Started

The easiest way to get TickerAgent running is by using our bundled ./tickeragent orchestration script which handles environment setup, dependencies, and Docker orchestration for you.

1. Clone the repository

git clone https://github.com/your-org/TickerAgent.git
cd TickerAgent

2. Configure Environment Variables

Copy the example environment file. You can leave the defaults if you just want to run local models!

cp .env.example .env

(See Configuration details below if you want to use Cloud LLMs or add external API Keys).

3. Start the Infrastructure

./tickeragent start

Note: The initial startup will download several Docker images including the default local LLM models (qwen2.5:1.5b and nomic-embed-text via Ollama). This may take several minutes depending on your internet connection.

4. Access the App

Once the services map port statuses:


βš™οΈ Configuration (.env)

TickerAgent is incredibly configurable. While the defaults work out of the box using local Docker services, you can unlock much faster inference and better data by adding your keys.

Local vs Cloud LLMs

By default, TickerAgent uses local Ollama models. To switch to a cloud provider natively (e.g. Groq):

  1. Open .env
  2. Set LLM_PROVIDER=groq
  3. Set LLM_API_KEY=gsk_your_groq_api_key_here...

(TickerAgent supports openai, anthropic, gemini, together, and groq through its LiteLLM integration router).

External Data Providers

To enrich your market reports, you can add API keys for major financial data providers in your .env file:

# Add your registered API Keys here
FRED_API_KEY=your_key_here
ALPHA_VANTAGE_API_KEY=your_key_here
FMP_API_KEY=your_key_here

# Social Data (Reddit requires no keys, but uses this UA)
SEC_EDGAR_USER_AGENT="TickerAgent admin@yourdomain.com"

πŸ›  Useful CLI Commands

Instead of memorizing long docker compose strings, you can use the bundled ./tickeragent CLI for granular stack control:

Command Action
./tickeragent start Boot up the entire architecture in the background.
./tickeragent status View the health and running status of all containers.
./tickeragent help Learn about all available commands.
./tickeragent logs [service] Stream colored logs. (e.g. ./tickeragent logs api)
./tickeragent restart [service] Bounce a specific container. (e.g. ./tickeragent restart worker)
./tickeragent refresh [service] Force a rebuild of a container after adding new Py/Node packages!
./tickeragent shell <service> Drop into an interactive bash prompt inside a running container.
./tickeragent stop Gracefully pause services without losing data.
./tickeragent clean Destructive! Tears down all networks, containers, and destroys Postgres/Ollama local volumes.

🀝 Contributing

We welcome contributions! Please review our Contributing Guidelines to understand our development workflow, coding standards, and how to submit pull requests.

πŸ›‘ Security & Code of Conduct

πŸ“ License

This project is licensed under the MIT License.

About

Analyze markets faster with AI. MarketMind transforms financial and social data into actionable insights using advanced RAG pipelines and knowledge graphs.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors