Loading the API reference…

Browse the API reference

Get latest end-of-day market data

get https://quant-ws.prod.thinkalpha.io/symbols/{symbol}/market-data/latest

Returns the most recent end-of-day trading summary for one symbol: open, high, low, close, volume, volume-weighted average price (VWAP), dollar volume, split factor, trailing returns, volatility and market capitalization.

The figures describe the last completed trading session available for the symbol (see date); they are not live or intraday quotes. By default prices and volume are adjusted for stock splits (adjusted=true): prices and VWAP are divided by the row's split factor and volume is multiplied by it. Dollar volume, market capitalization, returns and volatility are never adjusted. Prices are in the listing currency: US dollars for US listings and Canadian dollars for Canadian listings (symbols ending in /_CAN). Returns and volatility are fractions, not percentages: 0.01 means +1%. Properties that are not available for the symbol are omitted. Use fields to receive only some properties; unlike the symbol queries, no property is included automatically, so ask for symbol and date if you need them. Any authenticated caller can use this operation, and results do not depend on who is calling.

To retrieve the symbol's static reference data (name, identifiers, classification) use GET /symbols/{symbol}. For a symbol's trading hours and market state use the markets operations.

Authentication
Bearer token or Client credentials (HTTP Basic)

Path parameters

  • symbol string required

    Ticker symbol, for example `AAPL`. Case-insensitive; leading and trailing spaces are ignored. A ticker that contains a slash, such as the share class `BRK/B`, must be URL-encoded: `/symbols/BRK%2FB`. The spellings `BRK.B` and `BRK-B` are not accepted.

Query parameters

  • adjusted boolean | string

    Whether to adjust prices and volume for stock splits. Defaults to `true`. When `true` and the row has a positive split factor, `lastOpen`, `lastHigh`, `lastLow`, `lastClose` and `vwap` are divided by it and `lastVolume` is multiplied by it. Dollar volume, market capitalization, returns and volatility are never adjusted. Accepts `true` or `false` (also `1`/`0`, `yes`/`no`, `on`/`off`); any other value is rejected with `400`. Example: `adjusted=false`.

  • fields string[]

    Properties to include in the response. Allowed names: `symbol`, `securityId`, `date`, `adjusted`, `lastOpen`, `lastHigh`, `lastLow`, `lastClose`, `lastVolume`, `vwap`, `lastDollarVolume`, `splitFactor`, `return1Days`, `return21Days`, `return252Days`, `volatility63Days` and `marketCap`. Names are case-sensitive and unknown names are ignored. Only the requested properties are returned (none is added automatically). Omit to receive every available property. Repeat the parameter: `fields=lastClose&fields=vwap`.

Responses

The latest end-of-day market data for the symbol. Properties that are not available, or not requested with `fields`, are omitted.

  • symbol string

    Ticker symbol the row was recorded under, for example `AAPL`.

  • securityId number

    Numeric identifier of the security, the same as `securityId` on the symbol record.

  • date string<date>

    Trading date, `YYYY-MM-DD`, of the most recent completed trading session available for the symbol.

  • adjusted boolean

    Whether split adjustment was requested (the `adjusted` query parameter, default `true`). When `true` and `splitFactor` is present, prices are divided by `splitFactor` and `lastVolume` is multiplied by it. Echoes the request: it is `true` even when no split factor existed and nothing changed.

  • lastOpen number

    Opening price of the session, in the listing currency (USD for US listings, CAD for Canadian listings). Split-adjusted when `adjusted` is `true`.

  • lastHigh number

    Highest price of the session, in the listing currency. Split-adjusted when `adjusted` is `true`.

  • lastLow number

    Lowest price of the session, in the listing currency. Split-adjusted when `adjusted` is `true`.

  • lastClose number

    Closing price of the session, in the listing currency. Split-adjusted when `adjusted` is `true`.

  • lastVolume number

    Number of shares traded in the session. Multiplied by `splitFactor` when `adjusted` is `true`.

  • vwap number

    Volume-weighted average price (VWAP) of the session: the average trade price weighted by traded volume, in the listing currency. Split-adjusted when `adjusted` is `true`.

  • lastDollarVolume number

    Value traded in the session in the listing currency (closing price times volume). Never split-adjusted.

  • splitFactor number

    Split factor recorded for the row, a positive number. When `adjusted` is `true`, prices are divided by it and volume is multiplied by it. Omitted when no positive factor exists.

  • return1Days number

    Trailing return over the last 1 trading day, as a fraction: `0.01` means +1%. Not split-adjusted. Taken from the same session when available, otherwise from the symbol's latest reference data, so it can briefly lag a new session.

  • return21Days number

    Trailing return over the last 21 trading days, as a fraction: `0.01` means +1%. Taken from the same session when available, otherwise from the symbol's latest reference data, so it can briefly lag a new session.

  • return252Days number

    Trailing return over the last 252 trading days (about one year), as a fraction: `0.01` means +1%. Taken from the same session when available, otherwise from the symbol's latest reference data, so it can briefly lag a new session.

  • volatility63Days number

    Standard deviation of daily returns over the last 63 trading days, as a fraction and not annualized. Multiply by the square root of 252 (about 15.87) to annualize. Taken from the same session when available, otherwise from the symbol's latest reference data, so it can briefly lag a new session.

  • marketCap number

    Market capitalization in the listing currency: the unadjusted closing price times the shares outstanding as reported. Never split-adjusted.