Skip to content

minhhoang1023/linqalpha-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinqAlpha Financial Research Agent

AI-powered financial research agent for OpenBB Workspace using LinqAlpha's APIs.

About

This agent combines LinqAlpha's multi-agent AI platform for investment research with OpenBB Workspace's enterprise infrastructure for data visualization and workflow customization. LinqAlpha specializes in processing unstructured financial data from earnings transcripts, SEC filings, and regulatory documents, while OpenBB provides the secure, customizable interface for institutional research workflows. Together, the two solutions enable research teams to access specialized AI agents directly within OpenBB's platform, streamlining complex analysis from filing review to peer comparison in minutes. Learn more in this blog post.

LinqAlpha Agent 1 LinqAlpha Agent 2

Features

  • Search Chat: Financial document search (transcripts, news, filings)
  • RMS Chat: Enhanced research with organizational context
  • RMS Deep Research: Multi-step comprehensive analysis

Installation

  1. Install dependencies

    pip install -r requirements.txt
  2. Configure environment

    Copy .env.example to .env:

    cp .env.example .env

    Edit .env and add your API key:

    LINQALPHA_API_KEY=your_api_key_here

    Get your API key from LinqAlpha

  3. Run the agent

    python agent.py

    Agent runs on http://0.0.0.0:7777

Configuration

Required

  • LINQALPHA_API_KEY - Your LinqAlpha API key

Optional (for RMS features)

  • LINQALPHA_ORG_ID - Organization ID for RMS Chat/Deep Research
  • LINQALPHA_USER_ID - User identifier
  • LINQALPHA_USER_EMAIL - User email
  • LINQALPHA_USER_NAME - User name

Adding to OpenBB Workspace

Prerequisites

Make sure the agent is running before adding it to OpenBB Workspace:

python agent.py

The agent should be accessible at http://localhost:7777

Integration Steps

  1. Open OpenBB Workspace

  2. Access the OpenBB Copilot

    • Look for the OpenBB Copilot button at the bottom right of the Workspace interface
    • Click on it to open the Copilot panel
  3. Add New Agent

    • Click the + icon (or pencil icon if editing) in the Copilot panel
    • Enter the agent base URL: http://localhost:7777
    • OpenBB Workspace will automatically fetch the agent metadata from /agents.json

    Add new agent

    • The agent will appear in your available agents list

    Agent added successfully

  4. Start Using the Agent

    Try these example queries:

    • "What was Apple's revenue in Q4 2023?"
    • "Compare Tesla and Rivian's delivery numbers"
    • "Analyze the latest Fed meeting transcript"
    • "Show me recent insider trading for NVIDIA"

Technical Details

The agent exposes two endpoints for OpenBB Workspace:

  • /agents.json: Returns agent metadata (name, description, features)
  • /query: Handles queries via POST and streams responses using Server-Sent Events (SSE)

CORS is properly configured to allow OpenBB Workspace to communicate with the agent.

Research Modes

  • Default: Search Chat (no toggle needed)
  • RMS Chat: Enable "RMS Chat" toggle (requires LINQALPHA_ORG_ID)
  • Deep Research: Enable "RMS Deep Research" toggle (requires LINQALPHA_ORG_ID)

Project Structure

agent.py          # Main application
settings.py       # Configuration
.env              # Your API keys (not in git)
.env.example      # Template
README.md         # This file

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages