Datasets:
File size: 6,093 Bytes
d10c1cb a001bb4 d10c1cb a001bb4 fea94ae d10c1cb a001bb4 d10c1cb a001bb4 d10c1cb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | ---
license: other
license_name: public-domain-source-us-government
pretty_name: "US Macro Data: Trade"
language:
- en
tags:
- finance
- economics
- macroeconomics
- time-series
- fred
- trade
- quant
- backtesting
size_categories:
- 10K<n<100K
configs:
- config_name: long
data_files: data/long.parquet
default: true
- config_name: wide_monthly
data_files: data/wide_monthly.parquet
---
# US macro data: Trade (1,430 series)
1,430 trade series from US government sources, cleaned into one consistent format and ready for pandas.
This free package holds the **last 12 months** (2025-11-03 on) of each series' latest values. It is refreshed weekly.
```python
import pandas as pd
df = pd.read_parquet("hf://datasets/FinzData/macro-trade/data/long.parquet") # series_id, date, value
wide = pd.read_parquet("hf://datasets/FinzData/macro-trade/data/wide_monthly.parquet") # one column per series
```
or `datasets.load_dataset("FinzData/macro-trade")`. Wide tables by frequency: `wide_monthly` (1430 series). `series.csv` lists every series
with its title, units, frequency and how far back the full history goes.
## The full history, point in time, through one API
The FinzData API serves every series back to its first observation, **every revision** (what was known on any past
date, so backtests do not peek at later revisions), and **daily updates**, in the same format:
```python
import finzdata as fz # pip install finzdata
c = fz.Client() # free API key: https://api.finzdata.com/
c.macro("DEM_CN_BEV_V") # full history, latest values
c.macro("DEM_CN_BEV_V", vintage="first") # as first released
c.macro("DEM_CN_BEV_V", as_of="2020-03-01") # exactly what was known on that date
c.macro_series(category="trade") # the catalogue for this category
```
## Most-watched series in this package
| ID | Title | Units | Frequency | Full history from |
|---|---|---|---|---|
| `DEM_CN_BEV_V` | Germany imports of battery-electric cars from China (HS 870380), value | Millions of Euros | Monthly | 2017 |
| `DEM_CN_CARS_V` | Germany imports of passenger cars from China (HS 8703), value | Millions of Euros | Monthly | 1988 |
| `DEM_CN_PARTS_V` | Germany imports of motor-vehicle parts and accessories from China (HS 8708), value | Millions of Euros | Monthly | 1988 |
| `DEM_JP_BEV_V` | Germany imports of battery-electric cars from Japan (HS 870380), value | Millions of Euros | Monthly | 2017 |
| `DEM_JP_CARS_V` | Germany imports of passenger cars from Japan (HS 8703), value | Millions of Euros | Monthly | 1988 |
| `DEM_JP_PARTS_V` | Germany imports of motor-vehicle parts and accessories from Japan (HS 8708), value | Millions of Euros | Monthly | 1988 |
| `DEM_KR_BEV_V` | Germany imports of battery-electric cars from Korea, Republic of (HS 870380), value | Millions of Euros | Monthly | 2017 |
| `DEM_KR_CARS_V` | Germany imports of passenger cars from Korea, Republic of (HS 8703), value | Millions of Euros | Monthly | 1988 |
| `DEM_KR_PARTS_V` | Germany imports of motor-vehicle parts and accessories from Korea, Republic of (HS 8708), value | Millions of Euros | Monthly | 1988 |
| `DEM_US_BEV_V` | Germany imports of battery-electric cars from United States (HS 870380), value | Millions of Euros | Monthly | 2017 |
| `DEM_US_CARS_V` | Germany imports of passenger cars from United States (HS 8703), value | Millions of Euros | Monthly | 1988 |
| `DEM_US_PARTS_V` | Germany imports of motor-vehicle parts and accessories from United States (HS 8708), value | Millions of Euros | Monthly | 1988 |
| `DEM_W_BEV_V` | Germany imports of battery-electric cars from the world (HS 870380), value | Millions of Euros | Monthly | 2017 |
| `DEM_W_CARS_V` | Germany imports of passenger cars from the world (HS 8703), value | Millions of Euros | Monthly | 1988 |
| `DEM_W_PARTS_V` | Germany imports of motor-vehicle parts and accessories from the world (HS 8708), value | Millions of Euros | Monthly | 1988 |
| `DEM_XEU_BEV_V` | Germany imports of battery-electric cars from outside the EU (HS 870380), value | Millions of Euros | Monthly | 2017 |
| `DEM_XEU_CARS_V` | Germany imports of passenger cars from outside the EU (HS 8703), value | Millions of Euros | Monthly | 1999 |
| `DEM_XEU_PARTS_V` | Germany imports of motor-vehicle parts and accessories from outside the EU (HS 8708), value | Millions of Euros | Monthly | 1999 |
| `DEX_AE_BEV_V` | Germany exports of battery-electric cars to United Arab Emirates (HS 870380), value | Millions of Euros | Monthly | 2017 |
| `DEX_AE_CARS_V` | Germany exports of passenger cars to United Arab Emirates (HS 8703), value | Millions of Euros | Monthly | 1988 |
| `DEX_AE_DSL2_V` | Germany exports of diesel cars 1.5-2.5 litre to United Arab Emirates (HS 870332), value | Millions of Euros | Monthly | 1988 |
| `DEX_AE_DSL3_V` | Germany exports of diesel cars over 2.5 litre to United Arab Emirates (HS 870333), value | Millions of Euros | Monthly | 1988 |
| `DEX_AE_HEVD_V` | Germany exports of full hybrid cars (diesel) to United Arab Emirates (HS 870350), value | Millions of Euros | Monthly | 2017 |
| `DEX_AE_HEVP_V` | Germany exports of full hybrid cars (petrol) to United Arab Emirates (HS 870340), value | Millions of Euros | Monthly | 2017 |
| `DEX_AE_PARTS_V` | Germany exports of motor-vehicle parts and accessories to United Arab Emirates (HS 8708), value | Millions of Euros | Monthly | 1988 |
All 1,430 series: `series.csv`. Browse them at https://finzdata.com/macro/category/trade.
## More from FinzData
- Every macro category: https://huggingface.co/FinzData · index on GitHub: https://github.com/FinzData/macro-data
- Survivorship-free US stock prices since 2000, COT positioning, 13F holdings, insider trades, short interest
- Pricing (history bundles from $195 once): https://finzdata.com/pricing
- Python client (open source): https://github.com/FinzData/finzdata-python
Source: U.S. government agencies via FRED/ALFRED (Federal Reserve Bank of St. Louis). Compiled by FinzData.
Data for research, not investment advice.
|