FinzData commited on
Commit
1c1bcac
·
verified ·
1 Parent(s): 9550839

Weekly refresh 2026-10-31

Browse files
README.md CHANGED
@@ -14,29 +14,31 @@ tags:
14
  - quant
15
  - backtesting
16
  size_categories:
17
- - 10K<n<100K
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 (1,345 series)
29
 
30
- 1,345 energy series from US government sources, cleaned into one consistent format and ready for pandas.
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/wide_weekly.parquet") # one column per series
37
  ```
38
 
39
- or `datasets.load_dataset("FinzData/macro-energy")`. Wide tables by frequency: `wide_weekly` (7 series), `wide_monthly` (1338 series). `series.csv` lists every series
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("FZELEC_ARG_DEMAND") # full history, latest values
50
- c.macro("FZELEC_ARG_DEMAND", vintage="first") # as first released
51
- c.macro("FZELEC_ARG_DEMAND", as_of="2020-03-01") # exactly what was known on that date
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
- | `FZELEC_ARG_DEMAND` | Electricity demand: Argentina | Terawatt-hours | Monthly | 2018 |
60
- | `FZELEC_ARM_DEMAND` | Electricity demand: Armenia | Terawatt-hours | Monthly | 2019 |
61
- | `FZELEC_ASEAN_DEMAND` | Electricity demand: ASEAN | Terawatt-hours | Monthly | 2019 |
62
- | `FZELEC_ASIA_DEMAND` | Electricity demand: Asia | Terawatt-hours | Monthly | 2019 |
63
- | `FZELEC_AUS_DEMAND` | Electricity demand: Australia | Terawatt-hours | Monthly | 1999 |
64
- | `FZELEC_AUT_DEMAND` | Electricity demand: Austria | Terawatt-hours | Monthly | 2015 |
65
- | `FZELEC_AZE_DEMAND` | Electricity demand: Azerbaijan | Terawatt-hours | Monthly | 2019 |
66
- | `FZELEC_BEL_DEMAND` | Electricity demand: Belgium | Terawatt-hours | Monthly | 2015 |
67
- | `FZELEC_BGD_DEMAND` | Electricity demand: Bangladesh | Terawatt-hours | Monthly | 2019 |
68
- | `FZELEC_BGR_DEMAND` | Electricity demand: Bulgaria | Terawatt-hours | Monthly | 2015 |
69
- | `FZELEC_BIH_DEMAND` | Electricity demand: Bosnia Herzegovina | Terawatt-hours | Monthly | 2019 |
70
- | `FZELEC_BLR_DEMAND` | Electricity demand: Belarus | Terawatt-hours | Monthly | 2019 |
71
- | `FZELEC_BOL_DEMAND` | Electricity demand: Bolivia | Terawatt-hours | Monthly | 2019 |
72
- | `FZELEC_BRA_DEMAND` | Electricity demand: Brazil | Terawatt-hours | Monthly | 2018 |
73
- | `FZELEC_CAN_DEMAND` | Electricity demand: Canada | Terawatt-hours | Monthly | 2010 |
74
- | `FZELEC_CHE_DEMAND` | Electricity demand: Switzerland | Terawatt-hours | Monthly | 2017 |
75
- | `FZELEC_CHL_DEMAND` | Electricity demand: Chile | Terawatt-hours | Monthly | 2016 |
76
- | `FZELEC_CHN_DEMAND` | Electricity demand: China | Terawatt-hours | Monthly | 2015 |
77
- | `FZELEC_COL_DEMAND` | Electricity demand: Colombia | Terawatt-hours | Monthly | 2016 |
78
- | `FZELEC_CRI_DEMAND` | Electricity demand: Costa Rica | Terawatt-hours | Monthly | 2019 |
79
- | `FZELEC_CYP_DEMAND` | Electricity demand: Cyprus | Terawatt-hours | Monthly | 2017 |
80
- | `FZELEC_CZE_DEMAND` | Electricity demand: Czechia | Terawatt-hours | Monthly | 2015 |
81
- | `FZELEC_DEU_DEMAND` | Electricity demand: Germany | Terawatt-hours | Monthly | 2015 |
82
- | `FZELEC_DNK_DEMAND` | Electricity demand: Denmark | Terawatt-hours | Monthly | 2015 |
83
- | `FZELEC_DOM_DEMAND` | Electricity demand: Dominican Republic | Terawatt-hours | Monthly | 2022 |
84
 
85
- All 1,345 series: `series.csv`. Browse them at https://finzdata.com/macro/category/energy.
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:6d127e587488694987ac52dadaceceab3e08d9d915f90e9f38c23bd7f0381c50
3
- size 98678
 
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:2b2a68efe4262fd2597dfbd6401cf00c65c96d0cd66cf013914b38fba2fe4a36
3
- size 7751
 
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