> ## Documentation Index
> Fetch the complete documentation index at: https://docs.secapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate from Trading Economics

> Map your existing Trading Economics macro and market workflows to their SEC API endpoint equivalents with a side-by-side guide.

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

## Endpoint mapping

| Trading Economics          | SEC API                                | Notes                                                          |
| -------------------------- | -------------------------------------- | -------------------------------------------------------------- |
| `GET /indicators`          | `GET /v1/macro/indicators`             | Filter by `country` and `indicator` key                        |
| `GET /calendar`            | `GET /v1/macro/calendar`               | Upcoming macro events with `country` and `days` params         |
| `GET /forecast`            | `GET /v1/macro/forecasts`              | Forward estimates with `horizons` param                        |
| `GET /historical`          | `GET /v1/macro/indicators`             | Same endpoint, use `limit` for depth                           |
| `GET /markets/commodities` | `GET /v1/market/snapshots`             | Pass commodity ETF symbols                                     |
| `GET /markets/currency`    | `GET /v1/market/snapshots`             | Pass FX pair symbols                                           |
| `GET /markets/index`       | `GET /v1/market/indices`               | Supported index inventory                                      |
| `GET /news`                | `GET /v1/news`                         | News feed                                                      |
| Country overview           | `POST /v1/intelligence/country-report` | Factor-aware country analysis — goes beyond TE                 |
| N/A                        | `GET /v1/macro/high-signal-pack`       | Curated daily indicator bundles per country — no TE equivalent |
| N/A                        | `GET /v1/macro/regimes`                | Macro regime classification — no TE equivalent                 |

## 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**: Unique overlay of macro indicators 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 the 100-200 highest-signal series for allocators.
* **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:

```bash theme={null}
# 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

```bash theme={null}
# 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

```bash theme={null}
# 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 (SEC API exclusive)

```bash theme={null}
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"
```
