get_economic_calendar
Retrieve upcoming economic data release schedules to track market-moving events and plan financial analysis.
Instructions
Get upcoming economic data releases calendar
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Start date in YYYY-MM-DD format (optional) | |
| to | No | End date in YYYY-MM-DD format (optional) |
Implementation Reference
- src/tools/calendar.ts:47-65 (handler)The handler implementation and registration for 'get_economic_calendar'.
server.registerTool( 'get_economic_calendar', { description: 'Get upcoming economic data releases calendar', inputSchema: DateRangeSchema, }, async (args: z.infer<typeof DateRangeSchema>) => { try { const params: string[] = []; if (args.from) params.push(`from=${args.from}`); if (args.to) params.push(`to=${args.to}`); const endpoint = '/economic-calendar' + (params.length ? `?${params.join('&')}` : ''); const data = await fetchFMP<EconomicCalendar[]>(endpoint); return jsonResponse(data); } catch (error) { return errorResponse(error); } } );