Skip to content
Back to skills

2573 Economic Indicators 70da549c

ASecurity

All economic indicators return US data and follow the same response structure: ```json { "name": "Real Gross Domestic Product", "interval": "annual", "unit": "billions of chained 2012 dollars", "data": [{"date": "2023-01-01", "value": "22067.1"}, ...] } ```

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 31, 2026
datapythongoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 31, 2026

npx -y skills add tools-only/X-Skills --skill 2573-economic-indicators_70da549c --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2573 Economic Indicators 70da549c?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2573 Economic Indicators 70da549c
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2573-economic-indicators-70da549c/badge)](https://www.skillsdirectory.com/skills/tools-only-2573-economic-indicators-70da549c)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Economic Indicators APIs

All economic indicators return US data and follow the same response structure:

```json
{
  "name": "Real Gross Domestic Product",
  "interval": "annual",
  "unit": "billions of chained 2012 dollars",
  "data": [{"date": "2023-01-01", "value": "22067.1"}, ...]
}
```

## GDP

### REAL_GDP — Real Gross Domestic Product

Source: US Bureau of Economic Analysis via FRED.

**Optional:** `interval` (`annual`, `quarterly`) — default: `annual`

```python
data = av_get("REAL_GDP", interval="quarterly")
latest = data["data"][0]
print(latest["date"], latest["value"])
# unit: billions of chained 2012 dollars
```

### REAL_GDP_PER_CAPITA — Real GDP Per Capita

**No interval parameter** — quarterly data only.

```python
data = av_get("REAL_GDP_PER_CAPITA")
# unit: chained 2012 dollars
```

## Interest Rates

### TREASURY_YIELD — US Treasury Yield

**Optional:**
- `interval` (`daily`, `weekly`, `monthly`) — default: `monthly`
- `maturity` (`3month`, `2year`, `5year`, `7year`, `10year`, `30year`) — default: `10year`

```python
# 10-year treasury yield (daily)
data = av_get("TREASURY_YIELD", interval="daily", maturity="10year")
for obs in data["data"][:5]:
    print(obs["date"], obs["value"])
# unit: percent

# 2-year vs 10-year spread (yield curve)
two_yr = av_get("TREASURY_YIELD", interval="monthly", maturity="2year")
ten_yr = av_get("TREASURY_YIELD", interval="monthly", maturity="10year")
```

### FEDERAL_FUNDS_RATE — Federal Funds Rate

**Optional:** `interval` (`daily`, `weekly`, `monthly`) — default: `monthly`

```python
data = av_get("FEDERAL_FUNDS_RATE", interval="monthly")
# unit: percent
```

## Inflation

### CPI — Consumer Price Index

**Optional:** `interval` (`monthly`, `semiannual`) — default: `monthly`

```python
data = av_get("CPI", interval="monthly")
# unit: index 1982-1984 = 100
```

### INFLATION — Annual Inflation Rate

**No parameters** — annual data only.

```python
data = av_get("INFLATION")
# unit: percent (YoY change in CPI)
```

## Labor Market

### UNEMPLOYMENT — Unemployment Rate

**No parameters** — monthly data only.

```python
data = av_get("UNEMPLOYMENT")
latest = data["data"][0]
print(latest["date"], latest["value"])
# unit: percent
```

### NONFARM_PAYROLL — Nonfarm Payroll

**No parameters** — monthly data only.

```python
data = av_get("NONFARM_PAYROLL")
# unit: thousands of persons
```

## Consumer Spending

### RETAIL_SALES — Monthly Retail Sales

**No parameters** — monthly data only.

```python
data = av_get("RETAIL_SALES")
# unit: millions of dollars
```

### DURABLES — Durable Goods Orders

**No parameters** — monthly data only.

```python
data = av_get("DURABLES")
# unit: millions of dollars
```

## Macro Dashboard Example

```python
import pandas as pd

def econ_to_series(function, **kwargs):
    data = av_get(function, **kwargs)
    df = pd.DataFrame(data["data"])
    df["date"] = pd.to_datetime(df["date"])
    df["value"] = pd.to_numeric(df["value"], errors="coerce")
    return df.set_index("date")["value"].sort_index()

# Build economic snapshot
gdp = econ_to_series("REAL_GDP", interval="quarterly")
fed_funds = econ_to_series("FEDERAL_FUNDS_RATE", interval="monthly")
unemployment = econ_to_series("UNEMPLOYMENT")
cpi = econ_to_series("CPI", interval="monthly")
ten_yr = econ_to_series("TREASURY_YIELD", interval="monthly", maturity="10year")

print(f"Latest GDP: {gdp.iloc[-1]:.1f} billion (chained 2012$)")
print(f"Fed Funds Rate: {fed_funds.iloc[-1]:.2f}%")
print(f"Unemployment: {unemployment.iloc[-1]:.1f}%")
print(f"CPI: {cpi.iloc[-1]:.1f}")
print(f"10-Year Treasury: {ten_yr.iloc[-1]:.2f}%")

# Yield curve inversion check
two_yr = econ_to_series("TREASURY_YIELD", interval="monthly", maturity="2year")
spread = ten_yr - two_yr
print(f"Yield curve spread (10yr - 2yr): {spread.iloc[-1]:.2f}% ({'inverted' if spread.iloc[-1] < 0 else 'normal'})")
```

Files in this skill

  • README.md992 B
  • skill.md3.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.