How to Analyse Order Book Depth and Price History with OpenClaw
Analyse Polymarket order book and price history with OpenClaw and ToolRouter. Automated prediction market data collection.
ToolPolymarketOpenClaw collects Polymarket order book and price history data on a schedule for ongoing research. Build a historical database of probability curves, track liquidity changes over time, and monitor multiple markets in parallel — running systematic prediction market analysis without manual data collection.
Connect ToolRouter to OpenClaw
1Install the CLI
npm install -g toolrouter-mcp2Call tools directly from OpenClaw
toolrouter-mcp call web-search search --query "AI tools"
toolrouter-mcp toolsSteps
Once connected (see setup above), use the Polymarket tool:
- Ask: "Get order book depth for these markets: [list of slugs]"
- OpenClaw returns order book data for each market
- Ask: "Get price history for each market and identify the most significant probability shifts"
Example Prompt
Try this with OpenClaw using the Polymarket tool
Pull order book depth and 30-day price history for these Polymarket markets: [list]. For each market, return the bid/ask spread, total liquidity depth, and the largest single-day price move in the history period.
Tips
- Collect price history snapshots daily to build your own time-series database for historical analysis
- Track bid/ask spread changes over time as a proxy for growing or shrinking market interest
- Use the largest single-day move as a volatility measure to assess how event-driven each market is