getUnadjustedChart
Retrieve stock price and volume data without split adjustments for any symbol and date range. Get open, high, low, close prices and volume for accurate performance insights.
Instructions
Access stock price and volume data without adjustments for stock splits with the FMP Unadjusted Stock Price Chart API. Get accurate insights into stock performance, including open, high, low, and close prices, along with trading volume, without split-related changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock symbol | |
| from_date | No | Start date (YYYY-MM-DD) | |
| to | No | End date (YYYY-MM-DD) |
Implementation Reference
- src/tools/chart.ts:76-104 (handler)MCP tool handler for 'getUnadjustedChart' — defines the tool schema (symbol, from_date, to) and handler function that calls chartClient.getUnadjustedChart
server.tool( "getUnadjustedChart", "Access stock price and volume data without adjustments for stock splits with the FMP Unadjusted Stock Price Chart API. Get accurate insights into stock performance, including open, high, low, and close prices, along with trading volume, without split-related changes.", { symbol: z.string().describe("Stock symbol"), from_date: z.string().optional().describe("Start date (YYYY-MM-DD)"), to: z.string().optional().describe("End date (YYYY-MM-DD)"), }, async ({ symbol, from_date: from, to }) => { try { const results = await chartClient.getUnadjustedChart(symbol, from, to); return { content: [{ type: "text", text: JSON.stringify(results, null, 2) }], }; } catch (error) { return { content: [ { type: "text", text: `Error: ${ error instanceof Error ? error.message : String(error) }`, }, ], isError: true, }; } } ); - src/api/chart/types.ts:23-31 (schema)Type definition for the unadjusted chart data returned by the API
export interface UnadjustedChartData { symbol: string; date: string; adjOpen: number; adjHigh: number; adjLow: number; adjClose: number volume: number; } - src/toolception-adapters/coreModuleAdapters.ts:27-33 (registration)Registration of the chart module (including getUnadjustedChart) in the core module adapters registry
chart: createModuleAdapter('chart', registerChartTools), company: createModuleAdapter('company', registerCompanyTools), cot: createModuleAdapter('cot', registerCOTTools), esg: createModuleAdapter('esg', registerESGTools), economics: createModuleAdapter('economics', registerEconomicsTools), dcf: createModuleAdapter('dcf', registerDCFTools), }; - src/api/chart/ChartClient.ts:71-85 (helper)ChartClient.getUnadjustedChart — API client method that fetches unadjusted chart data from the /historical-price-eod/non-split-adjusted endpoint
async getUnadjustedChart( symbol: string, from?: string, to?: string, options?: { signal?: AbortSignal; context?: FMPContext; } ): Promise<UnadjustedChartData[]> { return super.get<UnadjustedChartData[]>( "/historical-price-eod/non-split-adjusted", { symbol, from, to }, options ); }