Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 rallies-cli

AI-Powered investment research

ChatGPT for traders, backed by real-time financial data

Python License: GPL v3 Rallies.ai

Rallies CLI Demo

✨ What is rallies-cli?

Rallies CLI is an intelligent investment research agent built by Rallies that combines the conversational power of AI with real-time financial data. Think of it as ChatGPT specifically designed for traders and investors, equipped with live market data, news feeds, and comprehensive financial analysis capabilities.

What's different from ChatGPT, Perplexity Finance, etc?

Most AI tools like ChatGPT rely on outdated market data and web searches that aren't real-time. Try asking them "summarize today's options flow for AAPL" or "find stocks with inside day patterns today" - they simply can't deliver accurate, current results because they lack live financial data.

Rallies-cli is different. It's powered by real-time market data that updates continuously, enabling complex queries that other AI tools can't handle. This means you get accurate, current analysis instead of outdated information from web searches.

🚀 Quick Start

Installation

# Install from source
git clone https://github.com/your-username/rallies-cli.git
cd rallies-cli
pip install -e .


# Install from PyPI
pip install rallies

Setup

  1. Get your OpenAI API key from OpenAI Platform
  2. Set environment variable:
    export OPENAI_API_KEY="sk-your-api-key-here"
  3. Launch rallies from your terminal:
    rallies

That's it! You're ready to start researching.

💡 Usage Examples

Basic Queries

> What's happening with AAPL today?
> Analyze Tesla's recent performance
> Show me top gainers in tech sector

Advanced Analysis

> Compare MSFT vs GOOGL over the last quarter
> Find stocks with cup and handle patterns
> What's the market sentiment on cryptocurrency?

Technical Analysis

> Show me NVDA's technical indicators
> Find oversold stocks in the S&P 500
> Analyze Bitcoin's recent price action

News & Events

> Latest earnings reports this week
> Federal Reserve meeting impact on markets
> Breaking news affecting my portfolio

🛠️ CLI Commands

Command Description
/help Show available commands and usage
/key API_KEY Set your rallies.ai API key for more usage
/feed Browse recent high-scoring community questions
/clear Clear conversation history
/compact Compress conversation while preserving context
/exit or /quit Exit the application

🔑 API Keys & Authentication

OpenAI API Key (Required)

export OPENAI_API_KEY="sk-your-openai-key"

Rallies.ai API Key (Optional - Higher usage limits)

# Set via CLI
rallies
> /key your-rallies-api-key

The Rallies.ai API key provides you higher rate limits. You can get your key by registering for a free account at Rallies

📋 Requirements

  • Python 3.8+
  • OpenAI API Key (required)
  • Terminal with color support (recommended)
  • Internet connection for real-time data

Dependencies

  • openai - GPT-4 integration
  • rich - Terminal formatting and colors
  • requests - HTTP requests for data APIs
  • inquirer - Interactive prompts
  • tiktoken - Token counting and management
  • numpy - Numerical computations

🐛 Troubleshooting

Common Issues

"OpenAI API Key not found"

export OPENAI_API_KEY="sk-your-key-here"

"Rate limit exceeded"

  • Get a Rallies.ai API key for higher limits
  • Use /compact to reduce token usage

"Network connection error"

  • Check internet connection
  • Verify firewall settings
  • Try again after a few moments

"Import errors"

pip install --upgrade rallies

Getting Help

🌐 Links

⚠️ Disclaimer

This tool is for educational and research purposes only. Rallies CLI does not provide investment advice, recommendations, or financial guidance. All information provided is for informational purposes only and should not be considered as investment advice. Always consult with a qualified financial advisor before making any investment decisions. Past performance does not guarantee future results. Trading and investing involve risk of loss.

📄 License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.


Built with ❤️ by the Rallies team - Making financial research accessible to everyone

About

Rallies is an AI powered investment research tool

Topics

Resources

Stars

190 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages