Weekly refresh 2026-10-31
Browse files- README.md +36 -34
- data/long.csv +0 -0
- data/long.parquet +2 -2
- data/wide_daily.parquet +3 -0
- data/wide_weekly.parquet +2 -2
- series.csv +0 -0
README.md
CHANGED
|
@@ -14,29 +14,31 @@ tags:
|
|
| 14 |
- quant
|
| 15 |
- backtesting
|
| 16 |
size_categories:
|
| 17 |
-
-
|
| 18 |
configs:
|
| 19 |
- config_name: long
|
| 20 |
data_files: data/long.parquet
|
| 21 |
default: true
|
|
|
|
|
|
|
| 22 |
- config_name: wide_weekly
|
| 23 |
data_files: data/wide_weekly.parquet
|
| 24 |
- config_name: wide_monthly
|
| 25 |
data_files: data/wide_monthly.parquet
|
| 26 |
---
|
| 27 |
|
| 28 |
-
# US macro data: Energy (
|
| 29 |
|
| 30 |
-
|
| 31 |
This free package holds the **last 12 months** (2025-10-31 on) of each series' latest values. It is refreshed weekly.
|
| 32 |
|
| 33 |
```python
|
| 34 |
import pandas as pd
|
| 35 |
df = pd.read_parquet("hf://datasets/FinzData/macro-energy/data/long.parquet") # series_id, date, value
|
| 36 |
-
wide = pd.read_parquet("hf://datasets/FinzData/macro-energy/data/
|
| 37 |
```
|
| 38 |
|
| 39 |
-
or `datasets.load_dataset("FinzData/macro-energy")`. Wide tables by frequency: `wide_weekly` (
|
| 40 |
with its title, units, frequency and how far back the full history goes.
|
| 41 |
|
| 42 |
## The full history, point in time, through one API
|
|
@@ -46,9 +48,9 @@ date, so backtests do not peek at later revisions), and **daily updates**, in th
|
|
| 46 |
```python
|
| 47 |
import finzdata as fz # pip install finzdata
|
| 48 |
c = fz.Client() # free API key: https://api.finzdata.com/
|
| 49 |
-
c.macro("
|
| 50 |
-
c.macro("
|
| 51 |
-
c.macro("
|
| 52 |
c.macro_series(category="energy") # the catalogue for this category
|
| 53 |
```
|
| 54 |
|
|
@@ -56,33 +58,33 @@ c.macro_series(category="energy") # the catalogue for this category
|
|
| 56 |
|
| 57 |
| ID | Title | Units | Frequency | Full history from |
|
| 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 |
-
All
|
| 86 |
|
| 87 |
## More from FinzData
|
| 88 |
- Every macro category: https://huggingface.co/FinzData · index on GitHub: https://github.com/FinzData/macro-data
|
|
|
|
| 14 |
- quant
|
| 15 |
- backtesting
|
| 16 |
size_categories:
|
| 17 |
+
- 100K<n<1M
|
| 18 |
configs:
|
| 19 |
- config_name: long
|
| 20 |
data_files: data/long.parquet
|
| 21 |
default: true
|
| 22 |
+
- config_name: wide_daily
|
| 23 |
+
data_files: data/wide_daily.parquet
|
| 24 |
- config_name: wide_weekly
|
| 25 |
data_files: data/wide_weekly.parquet
|
| 26 |
- config_name: wide_monthly
|
| 27 |
data_files: data/wide_monthly.parquet
|
| 28 |
---
|
| 29 |
|
| 30 |
+
# US macro data: Energy (2,021 series)
|
| 31 |
|
| 32 |
+
2,021 energy series from US government sources, cleaned into one consistent format and ready for pandas.
|
| 33 |
This free package holds the **last 12 months** (2025-10-31 on) of each series' latest values. It is refreshed weekly.
|
| 34 |
|
| 35 |
```python
|
| 36 |
import pandas as pd
|
| 37 |
df = pd.read_parquet("hf://datasets/FinzData/macro-energy/data/long.parquet") # series_id, date, value
|
| 38 |
+
wide = pd.read_parquet("hf://datasets/FinzData/macro-energy/data/wide_daily.parquet") # one column per series
|
| 39 |
```
|
| 40 |
|
| 41 |
+
or `datasets.load_dataset("FinzData/macro-energy")`. Wide tables by frequency: `wide_daily` (487 series), `wide_weekly` (196 series), `wide_monthly` (1338 series). `series.csv` lists every series
|
| 42 |
with its title, units, frequency and how far back the full history goes.
|
| 43 |
|
| 44 |
## The full history, point in time, through one API
|
|
|
|
| 48 |
```python
|
| 49 |
import finzdata as fz # pip install finzdata
|
| 50 |
c = fz.Client() # free API key: https://api.finzdata.com/
|
| 51 |
+
c.macro("FZCURVE_BRENT_WTI") # full history, latest values
|
| 52 |
+
c.macro("FZCURVE_BRENT_WTI", vintage="first") # as first released
|
| 53 |
+
c.macro("FZCURVE_BRENT_WTI", as_of="2020-03-01") # exactly what was known on that date
|
| 54 |
c.macro_series(category="energy") # the catalogue for this category
|
| 55 |
```
|
| 56 |
|
|
|
|
| 58 |
|
| 59 |
| ID | Title | Units | Frequency | Full history from |
|
| 60 |
|---|---|---|---|---|
|
| 61 |
+
| `FZCURVE_BRENT_WTI` | Brent minus WTI (front-month futures) | Dollars per Barrel | Daily | 2008 |
|
| 62 |
+
| `FZCURVE_BZ_CARRY` | Brent crude oil roll yield (M1 vs M2, annualised) | Percent | Daily | 2008 |
|
| 63 |
+
| `FZCURVE_BZ_M1` | Brent crude oil futures curve: month 1 (M1) | Dollars per Barrel | Daily | 2008 |
|
| 64 |
+
| `FZCURVE_BZ_M10` | Brent crude oil futures curve: month 10 (M10) | Dollars per Barrel | Daily | 2008 |
|
| 65 |
+
| `FZCURVE_BZ_M11` | Brent crude oil futures curve: month 11 (M11) | Dollars per Barrel | Daily | 2008 |
|
| 66 |
+
| `FZCURVE_BZ_M12` | Brent crude oil futures curve: month 12 (M12) | Dollars per Barrel | Daily | 2008 |
|
| 67 |
+
| `FZCURVE_BZ_M1M12` | Brent crude oil calendar spread, M1 minus M12 | Dollars per Barrel | Daily | 2008 |
|
| 68 |
+
| `FZCURVE_BZ_M1M2` | Brent crude oil calendar spread, M1 minus M2 | Dollars per Barrel | Daily | 2008 |
|
| 69 |
+
| `FZCURVE_BZ_M1M3` | Brent crude oil calendar spread, M1 minus M3 | Dollars per Barrel | Daily | 2008 |
|
| 70 |
+
| `FZCURVE_BZ_M1M6` | Brent crude oil calendar spread, M1 minus M6 | Dollars per Barrel | Daily | 2008 |
|
| 71 |
+
| `FZCURVE_BZ_M2` | Brent crude oil futures curve: month 2 (M2) | Dollars per Barrel | Daily | 2008 |
|
| 72 |
+
| `FZCURVE_BZ_M3` | Brent crude oil futures curve: month 3 (M3) | Dollars per Barrel | Daily | 2008 |
|
| 73 |
+
| `FZCURVE_BZ_M4` | Brent crude oil futures curve: month 4 (M4) | Dollars per Barrel | Daily | 2008 |
|
| 74 |
+
| `FZCURVE_BZ_M5` | Brent crude oil futures curve: month 5 (M5) | Dollars per Barrel | Daily | 2008 |
|
| 75 |
+
| `FZCURVE_BZ_M6` | Brent crude oil futures curve: month 6 (M6) | Dollars per Barrel | Daily | 2008 |
|
| 76 |
+
| `FZCURVE_BZ_M7` | Brent crude oil futures curve: month 7 (M7) | Dollars per Barrel | Daily | 2008 |
|
| 77 |
+
| `FZCURVE_BZ_M8` | Brent crude oil futures curve: month 8 (M8) | Dollars per Barrel | Daily | 2008 |
|
| 78 |
+
| `FZCURVE_BZ_M9` | Brent crude oil futures curve: month 9 (M9) | Dollars per Barrel | Daily | 2008 |
|
| 79 |
+
| `FZCURVE_CL_CARRY` | WTI crude oil roll yield (M1 vs M2, annualised) | Percent | Daily | 2008 |
|
| 80 |
+
| `FZCURVE_CL_M1` | WTI crude oil futures curve: month 1 (M1) | Dollars per Barrel | Daily | 2008 |
|
| 81 |
+
| `FZCURVE_CL_M10` | WTI crude oil futures curve: month 10 (M10) | Dollars per Barrel | Daily | 2008 |
|
| 82 |
+
| `FZCURVE_CL_M11` | WTI crude oil futures curve: month 11 (M11) | Dollars per Barrel | Daily | 2008 |
|
| 83 |
+
| `FZCURVE_CL_M12` | WTI crude oil futures curve: month 12 (M12) | Dollars per Barrel | Daily | 2008 |
|
| 84 |
+
| `FZCURVE_CL_M1M12` | WTI crude oil calendar spread, M1 minus M12 | Dollars per Barrel | Daily | 2008 |
|
| 85 |
+
| `FZCURVE_CL_M1M2` | WTI crude oil calendar spread, M1 minus M2 | Dollars per Barrel | Daily | 2008 |
|
| 86 |
|
| 87 |
+
All 2,021 series: `series.csv`. Browse them at https://finzdata.com/macro/category/energy.
|
| 88 |
|
| 89 |
## More from FinzData
|
| 90 |
- Every macro category: https://huggingface.co/FinzData · index on GitHub: https://github.com/FinzData/macro-data
|
data/long.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/long.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d3dfbb939efae9accbd245fcbb10265f4df03479672f0423ee95f9ed5d2ed46
|
| 3 |
+
size 674011
|
data/wide_daily.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b634a2163cd8edfc27f23e125961e7254c0d376cd02b6c31ea2cabd2a8290dec
|
| 3 |
+
size 1043498
|
data/wide_weekly.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:104bacd656fae174e88bf7e68bb9170fcc1039c2f351011a14b85a346f150e67
|
| 3 |
+
size 179086
|
series.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|