Skip to main content
GET
Get market beta snapshot

Overview

The Beta API returns the market beta of a stock: how much the stock moved for each move of the market. Each beta uses the same method:
  • Benchmark: SPY (S&P 500)
  • Lookback: 5y (the last 5 years)
  • Interval: month (returns from one month end to the next)
  • Price type: adjusted_close
  • Method: ols (the slope of the stock’s returns against the benchmark’s returns)
A stock with less than 5 years of prices uses all the months it has. With fewer than 3 months in common with the benchmark, value is null and reason says why. To get started, please create an account and grab your API key at financialdatasets.ai. You will use the API key to authenticate your API requests.

Coverage

Available Tickers

You can fetch a list of available tickers with a GET request to: https://api.financialdatasets.ai/prices/tickers/

Getting Started

There are only 3 steps for making a successful API call:
  1. Add your API key to the header of the request as X-API-KEY.
  2. Add query params like ticker to filter the data.
  3. Execute the API request.
Note: You must provide the ticker.

Example

Beta

Example Response

Response Fields

  • value: the beta, or null when there are too few months of prices.
  • start_date and end_date: the first and the last month end used.
  • n_observations: the number of months used.
  • r_squared: how closely the stock follows the benchmark, from 0 to 1.
  • reason: only when value is null. One of insufficient_observations, no_overlapping_observations or zero_benchmark_variance.

Authorizations

X-API-KEY
string
header
required

API key for authentication.

Query Parameters

ticker
string
required

The ticker symbol.

Response

Beta snapshot response

beta
object