Quote Endpoints

The Quote Endpoints provide unified access to real-time quotes, historical data, and intraday data for all asset types including stocks, cryptocurrencies, forex pairs, commodities, and ETFs. This unified approach simplifies your code by using the same methods regardless of asset type.

Available Methods

MethodEndpointDescription
GET/quote/{symbol}Get real-time quote for any asset type
GET/quote/{symbol1},{symbol2},...Get multiple quotes at once
GET/stable/quote-shortGet a short quote (price, change, volume) for any asset type
GET/historical-price-full/{symbol}Get historical price data for any asset type
GET/historical-chart/{interval}/{symbol}Get intraday data with various intervals

Supported Asset Types

The unified quote endpoints work with all major asset types:

  • Stocks: AAPL, MSFT, GOOGL, etc.
  • Cryptocurrencies: BTCUSD, ETHUSD, ADAUSD, etc.
  • Forex Pairs: EURUSD, GBPUSD, USDJPY, etc.
  • Commodities: ZOUSX (Gold), ZOUSX (Silver), etc.
  • ETFs: SPY, QQQ, VTI, etc.

Get Quote

Retrieve real-time quote data for any asset type. The response structure is consistent across all asset types.

TypeScriptTypeScript
ParameterTypeDescription
symbolstringrequiredAsset symbol (e.g., "AAPL", "BTCUSD", "EURUSD")

Example Response

TypeScriptTypeScript

Examples for Different Asset Types

TypeScriptTypeScript

Get Short Quote

Retrieve a lean quote with just price, change, and volume. Lighter on bandwidth than the full quote — useful for frequent polling.

TypeScriptTypeScript
ParameterTypeDescription
symbolstringrequiredAsset symbol (e.g., "AAPL", "BTCUSD", "EURUSD")

Example Response

TypeScriptTypeScript

Get Multiple Quotes

Retrieve quotes for multiple symbols in a single request.

TypeScriptTypeScript
ParameterTypeDescription
symbolsstring[]requiredArray of asset symbols

Example Response

TypeScriptTypeScript

Get Historical Data

Retrieve historical price data for any asset type with flexible date ranges.

TypeScriptTypeScript
ParameterTypeDescription
symbolstringrequiredAsset symbol
fromstringoptionalStart date (YYYY-MM-DD format)
tostringoptionalEnd date (YYYY-MM-DD format)

Example Response

TypeScriptTypeScript

Get Intraday Data

Retrieve intraday price data with various time intervals.

TypeScriptTypeScript
ParameterTypeDescription
symbolstringrequiredAsset symbol
intervalstringrequiredTime interval: "1min", "5min", "15min", "30min", "1hour", "4hour"
fromstringoptionalStart date (YYYY-MM-DD format)
tostringoptionalEnd date (YYYY-MM-DD format)

Example Response

TypeScriptTypeScript

Migration from Legacy Endpoints

The unified quote endpoints replace the separate quote methods in individual endpoint classes. The legacy methods are deprecated and will be removed in version 0.1.0.

Before (Deprecated)

TypeScriptTypeScript
TypeScriptTypeScript

TypeScript Support

The quote endpoints include full TypeScript support with unified types:

TypeScriptTypeScript

Error Handling

Handle errors consistently across all asset types:

TypeScriptTypeScript

Rate Limiting

The quote endpoints respect FMP's rate limits. For high-frequency trading applications, consider implementing your own rate limiting strategy.

Examples

Portfolio Tracker

TypeScriptTypeScript

Price Alert System

TypeScriptTypeScript

Historical Analysis

TypeScriptTypeScript

Ready to get started? Check out the Getting Started Guide or explore other API endpoints.