Federal Funds Rates Dashboard (JSON)

Home

Dataset Information

For this exercise, we will use data from the AlphaVantage API. Specifically we will use the "Federal Funds (Interest Rate)" endpoint. The Federal Funds Rate represents the rate at which banks borrow from each other, and impacts various other aspects of the economy, including borrowing costs, interest rates, and inflation. Consult the API documentation to learn more.

Setup

First obtain an AlphaVantage API Key, and supply it when prompted.

Part 1

Write JavaScript code to answer the questions below. Log each of the answers to the console.

  1. Fetch monthly Federal Funds rates data in JSON format from the API, using the provided URL.
  2. Display the name of this dataset (i.e. "Effective Federal Funds Rate").
  3. Display the time frequency of this dataset (i.e. "monthly").
  4. Display the number of datapoints provided. (i.e. 849).
  5. Display the time range (earliest and latest date) of available data (i.e. "1954-07-01" to "2025-03-01".
  6. Display the average, min, and max interest rate (using all available data).
  7. Display the average, min, and max interest rate (over the past twelve months only). NOTE: it's sufficient to just take the first twelve datapoints using an array slicing approach.


Part 2

Write JavaScript code to answer the questions below. Display the answers on the page in the designated areas.

  1. Create a line chart of the federal funds rate over time. Include a chart title and axis labels.