market
Retrieve active prediction market data for cryptocurrency or stock price movements, including order book details and remaining time for specific game types like BTC-5min or ETH-5min.
Instructions
Get the current active market for a specific game type, including order book and time remaining.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gameType | Yes | Game type, e.g. 'btc-5min', 'eth-5min', 'spy-10min' |
Implementation Reference
- src/index.ts:153-154 (handler)The request handler for the 'market' tool, which fetches data from the API based on the provided gameType.
case "market": return { content: [{ type: "text", text: JSON.stringify(await apiGet(`/api/games/${args?.gameType}/market`), null, 2) }] }; - src/index.ts:59-68 (schema)The schema registration for the 'market' tool, defining its input parameters.
name: "market", description: "Get the current active market for a specific game type, including order book and time remaining.", inputSchema: { type: "object" as const, properties: { gameType: { type: "string", description: "Game type, e.g. 'btc-5min', 'eth-5min', 'spy-10min'" }, }, required: ["gameType"], }, },