Skip to main content

Real-Time Prices
High Usage

tip

This endpoint is currently in open beta. It is available to all users (including free trial users) during our open beta test. We welcome your feedback.

Get real-time midpoint prices for one or more stocks. This endpoint returns real-time prices for stocks, using the SmartMid model.

Endpoint

https://api.marketdata.app/v1/stocks/prices/{symbol}/

or

https://api.marketdata.app/v1/stocks/prices/?symbols={symbol1},{symbol2},...

Method

GET

Request Examples

Response Example

{
"s": "ok",
"symbol": ["AAPL", "META", "MSFT"],
"mid": [149.07, 320.45, 380.12],
"updated": [1663958092, 1663958092, 1663958092]
}

Request Parameters

You can provide the symbol(s) in one of two ways:

  1. As part of the URL path:

    • symbol string The company's ticker symbol.
  2. As a query parameter:

    • symbols string Comma-separated list of ticker symbols.

Response Attributes

  • s string

    Will always be ok when there is data for the symbols requested.

  • symbol array[string]

    Array of ticker symbols that were requested.

  • mid array[number]

    Array of midpoint prices, as calculated by the SmartMid model.

  • updated array[date]

    Array of date/times for each stock price.