---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/stock-market/use-cases/analyze-price-history/openclaw
---
# How to Analyze Price History with OpenClaw

OpenClaw automates historical price collection and analysis at scale. Schedule it to pull price history for hundreds of tickers, calculate technical indicators like moving averages and volatility measures, and output structured datasets ready for your quantitative models or screening algorithms.

## Setup

openclaw mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

1. Connect ToolRouter: openclaw mcp add toolrouter -- npx -y toolrouter-mcp
2. Ask OpenClaw: "Get the price history for MSFT over the last 12 months"
3. OpenClaw retrieves historical data and presents key findings
4. Ask for return calculations and trend analysis
5. Export the data for further analysis

## Example Prompt

```
Pull 1-year price history for MSFT. What was the total return, and were there any months with a loss greater than 5%?
```

## Tips

- Request specific time frames to focus your analysis
- Ask OpenClaw to compare performance across multiple tickers
- Use historical data to backtest simple investment strategies
