Skip to main content

Quotes

Get a real-time quote for an index.

Endpoint

https://api.marketdata.app/v1/indices/quotes/{symbol}/

Method

GET

Request Example

Response Example

{
"s": "ok",
"symbol": ["VIX"],
"last": [29.92],
"updated": [1664224409]
}

Request Parameters

  • symbol string

    The index symbol, without any leading or trailing index identifiers. For example, use DJI do not use $DJI, ^DJI, .DJI, DJI.X, etc.

Response Attributes

  • s string

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

  • symbol array[string]

    The symbol of the index.

  • last array[number]

    The last price of the index.

  • change array[number]

    The difference in price in dollars (or the index's native currency if different from dollars) compared to the closing price of the previous day.

  • changepct array[number]

    The difference in price in percent compared to the closing price of the previous day.

  • 52weekHigh array[number]

    The 52-week high for the index.

  • 52weekLow array[number]

    The 52-week low for the index.

  • updated array[date]

    The date/time of the quote.