botindex_polymarket_micro_markets
Retrieve Polymarket micro-markets ending within 2 hours in Up/Down format to monitor near-term prediction market outcomes.
Instructions
Polymarket micro-markets ending in the next 2 hours (Up or Down format). $0.01
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:213-229 (handler)The tool 'botindex_polymarket_micro_markets' is dynamically registered at runtime by fetching the tool catalog from an external URL and iterating over it to register each tool. The handler logic for all these dynamic tools, including 'botindex_polymarket_micro_markets', is defined in lines 217-228.
server.tool( tool.name, tool.description, zodSchema, async (args: Record<string, any>) => { const params: Record<string, string> = {}; if (tool.params) { for (const p of tool.params) { if (args[p.name] !== undefined) { params[p.name] = String(args[p.name]); } } } const data = await fetchBotindex(tool.path, params); return { content: [{ type: 'text', text: toToolText(data) }] }; }, );