> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Monitor API: Investment Tracking

> Track funding announcements, M&A activity, and market movements.

```python investment_monitor.py theme={null}
"""
Monitor API — Investment Tracking
=================================

Track funding announcements, M&A activity, and market movements.

USE CASES:
- Startup funding rounds (Series A, B, C, etc.)
- M&A announcements and acquisitions
- IPO filings and market debuts
- Earnings releases and guidance changes

Monitors run on a schedule and detect NEW information.
Each event includes confidence scores and source citations.

Prerequisites:
- pip install parallel-web
- export PARALLEL_API_KEY=<your-api-key>
"""

from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.tools.parallel import ParallelTools

# =============================================================================
# INVESTMENT MONITOR CONFIGURATION
# =============================================================================

# Daily funding tracker — catches most announcements
funding_monitor = ParallelTools(
    enable_search=False,
    enable_extract=False,
    enable_monitor=True,
    default_monitor_frequency="1d",
    default_monitor_processor="base",
)

# Hourly M&A tracker — for time-sensitive deals
ma_monitor = ParallelTools(
    enable_search=False,
    enable_extract=False,
    enable_monitor=True,
    default_monitor_frequency="1h",
    default_monitor_processor="lite",
)

# =============================================================================
# INVESTMENT TRACKING AGENT
# =============================================================================

investment_agent = Agent(
    model=OpenAIResponses(id="gpt-5.4"),
    tools=[funding_monitor],
    markdown=True,
    instructions="""You track investment activity. Available actions:
    - create_monitor(query): Start tracking a topic
    - list_monitors(): See all active monitors
    - get_monitor_events(monitor_id): Get detected changes
    - get_monitor(monitor_id): Get monitor details
    - cancel_monitor(monitor_id): Stop tracking

    Use natural language queries like:
    "AI startup Series A and B funding announcements"
    NOT keyword searches like "AI AND funding AND Series"
    """,
)

# =============================================================================
# RUN
# =============================================================================
if __name__ == "__main__":
    # Create a funding monitor
    investment_agent.print_response(
        "Create a monitor to track AI startup funding announcements. "
        "Focus on Series A, B, and C rounds.",
        stream=True,
    )
```

## Run the Example

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U agno openai parallel-web
    ```
  </Step>

  <Step title="Export your API keys">
    <CodeGroup>
      ```bash Mac/Linux theme={null}
      export OPENAI_API_KEY="your_openai_api_key_here"
      export PARALLEL_API_KEY="your_parallel_api_key_here"
      ```

      ```bash Windows theme={null}
      $Env:OPENAI_API_KEY="your_openai_api_key_here"
      $Env:PARALLEL_API_KEY="your_parallel_api_key_here"
      ```
    </CodeGroup>
  </Step>

  <Step title="Run the example">
    Save the code above as `investment_monitor.py`, then run:

    ```bash theme={null}
    python investment_monitor.py
    ```
  </Step>
</Steps>

Full source: [cookbook/91\_tools/parallel/investment\_monitor.py](https://github.com/agno-agi/agno/blob/main/cookbook/91_tools/parallel/investment_monitor.py)
