← Global prices & macro→ מחירים ומאקרו עולמי
Global prices & macroמחירים ומאקרו עולמי

FRED (Federal Reserve Bank of St. Louis)FRED (הפדרל ריזרב של סנט לואיס)

Macro data hubמאגר מאקרוFree (free API key for the official API)חינם (API key חינמי ל-API הרשמי)

A huge free database of US and international economic time series, from Treasury yields to inflation and unemployment.מאגר חינמי ענק של סדרות עתיות כלכליות מארה"ב ומהעולם, מתשואות אג"ח ממשלתיות ועד אינפלציה ואבטלה.

What is it?מה זה?

FRED (Federal Reserve Economic Data) is run by the research department of the Federal Reserve Bank of St. Louis. It collects economic and financial time series from many official sources into one searchable site with charts, downloads and an API. Every series has a short ID, for example DGS10 for the 10-year US Treasury yield, which you can use to download it directly.FRED (Federal Reserve Economic Data) מופעל על ידי מחלקת המחקר של הפדרל ריזרב של סנט לואיס. הוא מאגד סדרות עתיות כלכליות ופיננסיות ממקורות רשמיים רבים לאתר אחד עם חיפוש, גרפים, הורדות ו-API. לכל סדרה יש מזהה קצר, למשל DGS10 לתשואת אג"ח האוצר האמריקאי ל-10 שנים, ואפשר להשתמש בו כדי להוריד אותה ישירות.

Why it matters for quantsלמה זה חשוב לקוואנטים

Almost every quant model needs macro context: a risk-free rate, the yield curve, inflation, credit spreads or volatility indices. FRED is the fastest free way to get these as clean time series. Quants use it for features in regime and allocation models, for discount rates, and for event studies around releases. Its companion service ALFRED keeps past vintages of data, which lets you rebuild what was actually known at each date.כמעט כל מודל קוונטי צריך הקשר מאקרו: ריבית חסרת סיכון, עקום תשואות, אינפלציה, מרווחי אשראי או מדדי תנודתיות. FRED היא הדרך החינמית המהירה ביותר לקבל את כל אלה כסדרות עתיות נקיות. קוונטים משתמשים בו לפיצ'רים במודלי regime והקצאה, לשיעורי היוון ול-event studies סביב פרסומים. השירות הנלווה ALFRED שומר גרסאות עבר (vintages) של הנתונים, וכך אפשר לשחזר מה באמת היה ידוע בכל תאריך.

What quants look forמה קוואנטים מחפשים שם

How to get startedאיך מתחילים

  1. Search fred.stlouisfed.org for a topic (for example "10-year treasury") and open the series page.חפשו נושא ב-fred.stlouisfed.org (למשל "10-year treasury") ופתחו את דף הסדרה.
  2. Note the series ID shown next to the title, and use the Download button to get CSV or Excel.רשמו את מזהה הסדרה שמופיע ליד הכותרת, והשתמשו בכפתור Download כדי לקבל CSV או Excel.
  3. In Python, read the CSV directly from the fredgraph.csv link with pandas, no key needed.ב-Python קראו את ה-CSV ישירות מהקישור fredgraph.csv עם pandas, בלי צורך במפתח.
  4. For heavier use, register for a free API key and use the official FRED API.לשימוש כבד יותר, הירשמו ל-API key חינמי והשתמשו ב-API הרשמי של FRED.

Code exampleדוגמת קוד

import pandas as pd

url = "https://fred.stlouisfed.org/graph/fredgraph.csv?id=DGS10"
df = pd.read_csv(url, index_col=0, parse_dates=True, na_values=".")
print(df.tail())

Downloads the full daily history of the 10-year US Treasury yield. Replace DGS10 with any FRED series ID.מוריד את כל ההיסטוריה היומית של תשואת אג"ח האוצר האמריקאי ל-10 שנים. החליפו את DGS10 בכל מזהה סדרה של FRED.

Tips & pitfallsטיפים ומלכודות

  • Many macro series are revised. FRED shows the latest values; use ALFRED vintages if you need what was known at the time.הרבה סדרות מאקרו מתעדכנות בדיעבד. FRED מציג את הערכים האחרונים; השתמשו בגרסאות של ALFRED אם אתם צריכים את מה שהיה ידוע באותו זמן.
  • Dates mark the observation period, not the release date. A monthly CPI value dated the first of the month was published weeks later.התאריכים מציינים את תקופת התצפית ולא את מועד הפרסום. ערך CPI חודשי שמתוארך לתחילת החודש פורסם שבועות אחר כך.
  • Check units and frequency: yields are in percent, some series are seasonally adjusted and some are not.בדקו יחידות ותדירות: תשואות הן באחוזים, וחלק מהסדרות מנוכות עונתיות וחלק לא.

Relatedקשור

Sourcesמקורות

Quant Israel is not affiliated with this service or company. Details may change — check the official site. Nothing here is investment advice.Quant Israel אינה קשורה לשירות או לחברה הזו. הפרטים עשויים להשתנות — בדקו באתר הרשמי. שום דבר כאן אינו ייעוץ השקעות.