Market Endpoints
Access market-wide data including performance metrics, trading hours, sector information, and market indices.
Available Methods
| Method | Endpoint | Description |
|---|---|---|
| GET | /market-performance | Get market performance data |
| GET | /stable/all-exchange-market-hours | Get trading hours and open/closed status for all exchanges |
| GET | /stable/biggest-gainers | Get top gaining stocks |
| GET | /stable/biggest-losers | Get top losing stocks |
| GET | /stable/most-actives | Get most active stocks |
| GET | /stable/sector-performance-snapshot | Get sector performance snapshot for a date |
| GET | /stable/industry-pe-snapshot | Get industry P/E snapshot for a date |
| GET | /quotes/index | Get market index data |
Get Market Performance
Retrieve overall market performance data including major indices.
Example Response
Get Market Hours
Retrieve trading hours and the current open/closed status for every supported exchange. Returns one record per exchange.
Example Response
Get Top Gainers
Retrieve the top gaining stocks for the current trading day.
Example Response
Get Top Losers
Retrieve the top losing stocks for the current trading day.
Example Response
Get Most Active
Retrieve the most actively traded stocks by volume.
Example Response
Get Sector Performance
Retrieve a sector-performance snapshot for a given date, showing the average change per sector broken out by exchange. A date (YYYY-MM-DD) is required; exchange and sector are optional filters.
| Parameter | Type | Description | |
|---|---|---|---|
| date | string | required | Snapshot date in YYYY-MM-DD format |
| exchange | string | optional | Optional exchange filter (e.g., NASDAQ, NYSE) |
| sector | string | optional | Optional sector filter (e.g., Technology) |
Example Response
Get Industry P/E Snapshot
Retrieve an industry P/E snapshot for a given date, showing the average price-to-earnings ratio per industry broken out by exchange. A date (YYYY-MM-DD) is required; exchange and industry are optional filters.
| Parameter | Type | Description | |
|---|---|---|---|
| date | string | required | Snapshot date in YYYY-MM-DD format |
| exchange | string | optional | Optional exchange filter (e.g., NASDAQ, NYSE) |
| industry | string | optional | Optional industry filter (e.g., Software) |
Example Response
Note: On the FMP Starter plan, the snapshot endpoints are available for recent dates only; older
datevalues require a higher tier.
Get Market Index
Retrieve detailed market index data.
Example Response
Response Types
MarketPerformance
ExchangeMarketHours
MarketSectorPerformance
IndustryPESnapshot
MarketIndex
Note: Some numeric fields may be returned as strings by the FMP API. Always check the type at runtime if you need strict type safety.
Error Handling
Always check the success property before accessing data:
Rate Limiting
Market endpoints are subject to FMP's rate limits. For production applications, implement appropriate rate limiting and caching strategies.
Market Hours
Market data availability depends on trading hours:
- Stock Market - Typically 9:30 AM - 4:00 PM ET (Monday-Friday)
- Pre-Market - 4:00 AM - 9:30 AM ET
- After-Hours - 4:00 PM - 8:00 PM ET
- Weekends/Holidays - Limited data availability
Next Steps
Explore other endpoint categories:
- Stock Endpoints - Real-time quotes and historical data
- Company Endpoints - Company profiles and executive data
- Financial Endpoints - Financial statements and ratios
- Economic Endpoints - Economic indicators and data
- Calendar Endpoints - Earnings and dividend calendars
- List Endpoints - Available symbols and instruments
- Examples - Practical code samples
Ready to explore economic data? Check out the Economic Endpoints for indicators and macroeconomic data.