run_scraper
Fetch fresh market data from prediction platforms like Kalshi and Polymarket to support trading decisions and arbitrage detection.
Instructions
Fetch fresh market data from a platform scraper.
Args: source: Which scraper to run: "kalshi", "polymarket", or "arbitrage".
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes |
Implementation Reference
- src/rekko_mcp/server.py:442-449 (handler)The handler function for the `run_scraper` tool, which triggers a scraper via a POST request.
@mcp.tool() async def run_scraper(source: str) -> str: """Fetch fresh market data from a platform scraper. Args: source: Which scraper to run: "kalshi", "polymarket", or "arbitrage". """ return await _request("POST", "/v1/scrapers/run", json={"source": source})