Skip to content

Data set · version 1.0.0 · CSV

The EcoFinLearn teaching dataset

By Sitraka Forler · Lecturer, Durham Business SchoolUpdated 16 Oct 2026 About this site

The three tables behind the SQL lessons, exactly as the in-browser sandbox loads them: daily prices, a trade ledger and US macro releases. Every learner sees the same rows, so a result can be quoted, checked and cited. The prices and trades are synthetic; the macro figures are real, each with the day it was published.

  1. Files
  2. Synthetic or real
  3. Data dictionary
  4. The macro releases
  5. Sources and licence
  6. How to cite
  7. Lessons that use it

1.Files

Table 1. The published files, UTF-8 CSV with a header row; dates in ISO 8601.
FileCoverage
equity_prices.csv2,600 rows · 129 KB · SyntheticDaily open, high, low, close and volume for AAPL, MSFT, JPM, GS, SPY2022-01-03 to 2023-12-29
trade_ledger.csv200 rows · 8 KB · SyntheticFills booked by four desks: ticker, side, quantity, price2022-01-10 to 2023-08-30
macro_indicators.csv42 rows · 1 KB · RealUS CPI inflation (25 monthly releases) and the Fed policy rate (17 FOMC decisions)released 2021-12-15 to 2024-01-11

The README repeats this page in plain text, for anyone who downloads the files without it.

2.Synthetic or real

Prices and trades are synthetic. The tickers are real symbols, but the numbers are not market data: they come from a seeded random walk and must not be read as, or compared with, historical prices. They give the queries something of the right shape to work on. The generator uses a fixed seed, plain arithmetic and a calendar computed in UTC, so it produces the same file, to the last digit, on every machine and in every timezone.

Macro figures are real. Each CPI value and each Fed decision was read from the official publication and checked on 16 October 2026. Each row carries two dates, the way research databases store fundamentals: ref_period, the month the figure describes, and release_date, the day it became public. A backtest that joins on the first sees numbers before they existed.

3.Data dictionary

Table 2. equity_prices (synthetic).
ColumnMeaning
tickertextAAPL, MSFT, JPM, GS or SPY (labels only)
trade_datedateEvery weekday from 2022-01-03 to 2023-12-29; exchange holidays are not removed (520 days per ticker)
open_pricedecimal, USDOpening price, within 0.25% of the previous close
high_pricedecimal, USDSession high, never below open or close
low_pricedecimal, USDSession low, never above open or close
close_pricedecimal, USDClosing price; the walk moves between -0.96% and +1.04% a day
volumeinteger, shares1,000,000 to 9,999,999
Table 3. trade_ledger (synthetic).
ColumnMeaning
trade_idinteger1 to 200
tickertextRound-robin over the five tickers
trade_datedateEvery third calendar day, so some fills fall on a weekend and match no price row
sidetextSELL for every third trade, otherwise BUY
quantityinteger, shares100 to 999
pricedecimal, USDFill price, 100 to 500; not tied to the equity_prices level
desktextEquities-US, Equities-EU, Macro or Quant
Table 4. macro_indicators (real).
ColumnMeaning
indicator_nametextCPI_YoY or FedFunds
ref_periodmonthThe month the figure refers to (YYYY-MM)
release_datedateThe day the figure became public
valuedecimal, percentThe published figure
prior_valuedecimal, percentThe previous figure of the same series

CPI_YoY is the 12-month percent change of the CPI for All Urban Consumers (CPI-U), all items, U.S. city average, not seasonally adjusted, as printed in the headline of the BLS release (8:30 a.m. Eastern Time). That index is not revised, so the first published figure is still the official one. FedFunds is the upper bound of the federal funds target range set at each scheduled FOMC meeting, holds included, dated by the statement (2:00 p.m. Eastern Time); the new range takes effect the next day.

4.The macro releases

The whole of macro_indicators. Read across a row: the figure for Jun 2022, 9.1%, was not known until 13 Jul 2022.

Table 5. US CPI, 12-month change (%).
ref_periodrelease_datevalue
2021-122022-01-127.0
2022-012022-02-107.5
2022-022022-03-107.9
2022-032022-04-128.5
2022-042022-05-118.3
2022-052022-06-108.6
2022-062022-07-139.1
2022-072022-08-108.5
2022-082022-09-138.3
2022-092022-10-138.2
2022-102022-11-107.7
2022-112022-12-137.1
2022-122023-01-126.5
2023-012023-02-146.4
2023-022023-03-146.0
2023-032023-04-125.0
2023-042023-05-104.9
2023-052023-06-134.0
2023-062023-07-123.0
2023-072023-08-103.2
2023-082023-09-133.7
2023-092023-10-123.7
2023-102023-11-143.2
2023-112023-12-123.1
2023-122024-01-113.4
Table 6. Fed funds target, upper bound (%).
ref_periodrelease_datevalue
2021-122021-12-150.25
2022-012022-01-260.25
2022-032022-03-160.50
2022-052022-05-041.00
2022-062022-06-151.75
2022-072022-07-272.50
2022-092022-09-213.25
2022-112022-11-024.00
2022-122022-12-144.50
2023-022023-02-014.75
2023-032023-03-225.00
2023-052023-05-035.25
2023-062023-06-145.25
2023-072023-07-265.50
2023-092023-09-205.50
2023-112023-11-015.50
2023-122023-12-135.50

5.Sources and licence

  1. US Bureau of Labor Statistics, Consumer Price Index news releases (archive). Every CPI_YoY value and release date, read from the release itself, e.g. cpi_07132022.htm for June 2022.
  2. FRED, series CPIAUCNS (CPI-U index, not seasonally adjusted). Index levels used to cross-check the 12-month changes.
  3. Federal Reserve Board, FOMC meeting calendars and statements. The date of each FedFunds row: the day the statement was released.
  4. FRED, series DFEDTARU (federal funds target range, upper limit). The FedFunds values; FRED moves to the new level on the effective date, the day after each statement.

macro_indicators: works of the US federal government (Bureau of Labor Statistics, Board of Governors of the Federal Reserve System), in the public domain in the United States. Please cite the original publishers as well.

equity_prices, trade_ledger and the documentation: Creative Commons Attribution 4.0 (CC BY 4.0). Credit Sitraka Forler, EcoFinLearn, with a link to this page.

6.How to cite

Cite the version you used; a new version gets a new number and this page keeps its address.

Plain text
Forler, S. M. (2026). EcoFinLearn teaching dataset: synthetic equity prices and trades with point-in-time US macro releases (Version 1.0.0) [Data set]. EcoFinLearn. https://ecofinlearning.com/data
BibTeX
@misc{forler_ecofinlearn_teaching_data_2026,
  author       = {Forler, Sitraka M.},
  title        = {{EcoFinLearn teaching dataset: synthetic equity prices and trades with point-in-time US macro releases}},
  year         = {2026},
  version      = {1.0.0},
  publisher    = {EcoFinLearn},
  howpublished = {\url{https://ecofinlearning.com/data}},
  note         = {Data set. Macro figures from the US Bureau of Labor Statistics and the Federal Reserve Board; prices and trades are synthetic}
}

No DOI has been registered for this dataset yet; until one is, cite the version and the URL.

7.Lessons that use it

Every SQL lesson runs on these tables in your browser, with nothing to install.

The audit step of the Quantitative Equity Research Report (capstone) starts from the same price table.