get_market_gainers
Identify stocks with the largest price increases to analyze market momentum and discover top-performing securities for investment research.
Instructions
Get stocks with the largest price increases (top gainers)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/market.ts:61-75 (handler)The get_market_gainers tool is registered and implemented within the registerMarketTools function in src/tools/market.ts. It fetches data from the '/biggest-gainers' endpoint via the fetchFMP utility.
server.registerTool( 'get_market_gainers', { description: 'Get stocks with the largest price increases (top gainers)', inputSchema: z.object({}), }, async () => { try { const data = await fetchFMP<MarketMover[]>('/biggest-gainers'); return jsonResponse(data); } catch (error) { return errorResponse(error); } } );