Skip to main content

Migrate from Trading Economics

This guide helps Trading Economics users map their existing workflows to SEC API equivalents. SEC API provides a narrower macro API focused on high-signal indicators with factor-aware intelligence overlays.

Endpoint mapping

Trading EconomicsSEC APINotes
GET /indicatorsGET /v1/macro/indicatorsFilter by country and indicator key
GET /calendarGET /v1/macro/calendarUpcoming macro events with country and days params
GET /forecastGET /v1/macro/forecastsForward estimates with horizons param
GET /historicalGET /v1/macro/indicatorsSame endpoint, use limit for depth
GET /markets/commoditiesGET /v1/market/snapshotsPass commodity ETF symbols
GET /markets/currencyGET /v1/market/snapshotsPass FX pair symbols
GET /markets/indexGET /v1/market/indicesSupported index inventory
GET /newsGET /v1/news/searchNews feed search
Country overviewPOST /v1/intelligence/country-reportFactor-aware country analysis
N/AGET /v1/macro/high-signal-packCurated daily indicator bundles per country
N/AGET /v1/macro/regimesMacro regime classification

Key differences

What SEC API adds beyond Trading Economics

  • High-signal packs: Curated daily/weekly indicator bundles for 12 countries (US, CN, JP, TW, IL, CA, GB, EZ, KR, BR, IN, SA) including yield curves, credit spreads, breakeven inflation, and volatility.
  • Macro regime classification: Automated regime detection (expansion, contraction, recovery, overheating) with factor-aware conditioning.
  • Country reports: AI-powered country analysis that integrates macro data with factor positioning and risk signals.
  • Factor-conditioned macro: Macro indicators paired with equity factor performance.

What Trading Economics covers that SEC API does not (yet)

  • Breadth: TE covers 15,000+ series across 196 countries. SEC API focuses on a smaller allocator-oriented set.
  • Excel/Sheets plugins: TE has native spreadsheet integrations. SEC API provides SDKs (JS, Python, Go, Rust) and MCP.
  • Commodity/FX spot prices as dedicated series: SEC API provides these via market snapshots and factor proxies rather than as standalone macro series.

Authentication

Trading Economics uses a client key in the query string. SEC API uses the x-api-key header:
# Trading Economics
curl "https://api.tradingeconomics.com/calendar?c=YOUR_KEY"

# SEC API
curl -H "x-api-key: $SECAPI_API_KEY" \
  "https://api.secapi.ai/v1/macro/calendar?country=US"

Example: get US macro indicators

# Trading Economics - US GDP
curl "https://api.tradingeconomics.com/historical/country/united%20states/indicator/gdp?c=KEY"

# SEC API - US GDP
curl -H "x-api-key: $SECAPI_API_KEY" \
  "https://api.secapi.ai/v1/macro/indicators?country=US&indicator=GDPC1"

Example: get macro calendar

# Trading Economics
curl "https://api.tradingeconomics.com/calendar?c=KEY"

# SEC API
curl -H "x-api-key: $SECAPI_API_KEY" \
  "https://api.secapi.ai/v1/macro/calendar?country=US&days=7"

Example: country analysis

curl -X POST -H "x-api-key: $SECAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country": "US", "lookback": "6m"}' \
  "https://api.secapi.ai/v1/intelligence/country-report"