Skip to main content
Glama

Financial Modeling Prep MCP Server

Apache 2.0
17
59
  • Linux
  • Apple
MarketHoursClient.ts1.74 kB
import { FMPClient } from "../FMPClient.js"; import type { FMPContext } from "../../types/index.js"; import type { ExchangeMarketHours, HolidayByExchange } from "./types.js"; export class MarketHoursClient extends FMPClient { constructor(apiKey?: string) { super(apiKey); } /** * Get market hours for a specific exchange * @param exchange Exchange name/code * @param options Optional parameters including abort signal and context */ async getExchangeMarketHours( exchange: string, options?: { signal?: AbortSignal; context?: FMPContext; } ): Promise<ExchangeMarketHours[]> { return super.get<ExchangeMarketHours[]>( "/exchange-market-hours", { exchange }, options ); } /** * Get holidays for a specific exchange * @param exchange Exchange name/code * @param from Optional Start date for the holidays * @param to Optional End date for the holidays * @param options Optional parameters including abort signal and context */ async getHolidaysByExchange( exchange: string, from?: string, to?: string, options?: { signal?: AbortSignal; context?: FMPContext; } ): Promise<HolidayByExchange[]> { return super.get<HolidayByExchange[]>( "/holidays-by-exchange", { exchange, from, to }, options ); } /** * Get market hours for all exchanges * @param options Optional parameters including abort signal and context */ async getAllExchangeMarketHours(options?: { signal?: AbortSignal; context?: FMPContext; }): Promise<ExchangeMarketHours[]> { return super.get<ExchangeMarketHours[]>( "/all-exchange-market-hours", {}, options ); } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/imbenrabi/Financial-Modeling-Prep-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server