Energy futures - energy_futures

Data - Investing

Instantané quotidien de https://fr.investing.com/commodities/energy : contrats à terme sur l’énergie. Une ligne par instrument et par jour.

Dernier instantané

Code
last_day <- max(energy_futures$scraped_date)

energy_futures |>
  filter(scraped_date == last_day) |>
  transmute(Instrument = name, Échéance = month, Dernier = last,
            `+ Haut` = high, `+ Bas` = low, `Var.` = chg, `Var. %` = chg_pct,
            Heure = quote_time) |>
  arrange(Instrument) |>
  print_table_conditional()
Instrument Échéance Dernier + Haut + Bas Var. Var. % Heure
Dutch TTF Natural Gas Déc 2026 91.3900 91.8150 90.9850 2.9390 3.32 23/11
E-mini Crude Oil Jan 2027 79.7500 80.5800 79.7000 -0.4300 -0.53 05:38:14
Emissions de carbone Déc 2026 83.7500 84.2700 81.4200 2.4900 3.06 23/11
Essence RBOB Déc 2026 2.3863 2.4155 2.3793 -0.0191 -0.79 06:36:57
Fioul Déc 2026 3.6781 3.7125 3.6728 -0.0267 -0.72 06:36:57
Gasoil Londres Déc 2026 1103.6300 1113.7500 1101.7500 -8.1200 -0.73 06:36:57
Gaz naturel Jan 2027 3.5430 3.5520 3.5280 0.0070 0.20 06:36:55
Malaysian Crude Palm Oil c2 1034.7500 1034.7500 1034.7500 -28.7500 -2.70 20/11
Micro Henry Hub Natural Gas c2 Jan 2027 3.5380 3.5570 3.5020 0.0150 0.43 05:38:34
Micro WTI Crude Oil Jan 2027 79.7700 80.6100 79.6900 -0.4000 -0.50 05:38:24
Pétrole Brent Févr 2027 85.9700 87.1300 85.7000 -0.7100 -0.82 06:36:55
Pétrole brut WTI Jan 2027 79.4300 80.6100 79.2100 -0.7400 -0.92 06:36:56

Source : investing.com, instantané du 24 novembre 2026.

Prix (valeurs)

Code
earliest <- min(energy_futures$scraped_date)

energy_price_chart <- function(sel, from = earliest, ylab = "Prix") {
  d <- energy_futures |> filter(name %in% sel, scraped_date >= from)

  if (n_distinct(d$scraped_date) < 2) {
    knitr::asis_output(paste0(
      "_Série trop courte (", n_distinct(d$scraped_date),
      " relevé) — le graphique se remplira au fil des instantanés quotidiens._"))
  } else {
    d |>
      ggplot() + geom_line(aes(x = scraped_date, y = last, color = name)) +
      theme_minimal() + xlab("") + ylab(ylab) +
      scale_color_commodity() +
      theme(legend.position = "bottom", legend.title = element_blank())
  }
}

Pétrole brut WTI vs Pétrole Brent

1er septembre 2026-

Code
energy_price_chart(c("Pétrole brut WTI", "Pétrole Brent"), ylab = "$ / baril")

7 derniers jours

Code
energy_price_chart(c("Pétrole brut WTI", "Pétrole Brent"),
                    from = last_day - 6, ylab = "$ / baril")

Essence RBOB vs Fioul

1er septembre 2026-

Code
energy_price_chart(c("Essence RBOB", "Fioul"), ylab = "$ / gallon")

7 derniers jours

Code
energy_price_chart(c("Essence RBOB", "Fioul"),
                    from = last_day - 6, ylab = "$ / gallon")

Historique

energy_futures.parquet est un instantané quotidien cumulatif : il ne remonte qu’au 1ᵉʳ septembre 2026. Les contrats génériques (toutes échéances confondues) correspondants existent en revanche depuis des décennies dans commodities.parquet (historique complet via l’API investing.com, voir commodity_futures.qmd) : WTI depuis 1983, Brent depuis 1988, gaz naturel depuis 1990, fioul depuis 1979, essence RBOB depuis 2005, gasoil de Londres depuis 2007, quotas carbone depuis 2008, TTF néerlandais depuis 2017.

Code
hist_price_chart <- function(sel, from = NULL, ylab = "Prix", log = FALSE) {
  d <- commodities |> filter(commodity %in% sel)
  if (!is.null(from)) d <- d |> filter(Date >= as.Date(from))

  g <- d |>
    ggplot() + geom_line(aes(x = Date, y = Close, color = commodity)) +
    theme_minimal() + xlab("") + ylab(ylab) +
    scale_x_date(date_labels = "%Y") +
    scale_color_commodity() +
    theme(legend.position = "bottom", legend.title = element_blank())
  if (log) g <- g + scale_y_log10()
  g
}

Pétrole brut WTI vs Brent

Depuis 1988

Code
hist_price_chart(c("Crude Oil WTI", "Brent Oil"), ylab = "$ / baril", log = TRUE)

Depuis 2010

Code
hist_price_chart(c("Crude Oil WTI", "Brent Oil"), from = "2010-01-01",
                  ylab = "$ / baril")

Essence RBOB vs Fioul (Heating Oil)

Depuis 2005

Code
hist_price_chart(c("Gasoline RBOB", "Heating Oil"), ylab = "$ / gallon")

Depuis 2015

Code
hist_price_chart(c("Gasoline RBOB", "Heating Oil"), from = "2015-01-01",
                  ylab = "$ / gallon")

Gaz naturel (Henry Hub)

Depuis 1990

Code
hist_price_chart("Natural Gas", ylab = "$ / MMBtu", log = TRUE)

Depuis 2010

Code
hist_price_chart("Natural Gas", from = "2010-01-01", ylab = "$ / MMBtu")

Gaz naturel : Henry Hub (US) vs TTF (Europe)

Depuis 2017

Code
hist_price_chart(c("Natural Gas", "Dutch TTF Natural Gas"),
                  from = "2017-10-23", ylab = "$ ou € / MMBtu-MWh")

Henry Hub en $/MMBtu, TTF en €/MWh : échelles non directement comparables (unités et devises différentes), mais utile pour visualiser le découplage des prix du gaz US et européen depuis la crise énergétique de 2021-2022.

Gasoil de Londres

Depuis 2007

Code
hist_price_chart("London Gas Oil", ylab = "$ / tonne")

Quotas carbone (EU ETS)

Depuis 2008

Code
hist_price_chart("Carbon Emissions", ylab = "€ / tonne")

Évolution (base 100)

Code
sel <- c("Pétrole brut WTI", "Pétrole Brent", "Gaz naturel",
         "Dutch TTF Natural Gas", "Fioul", "Essence RBOB")
d <- energy_futures |> filter(name %in% sel)

if (n_distinct(d$scraped_date) < 2) {
  knitr::asis_output(paste0(
    "_Série trop courte (", n_distinct(d$scraped_date),
    " relevé) — le graphique se remplira au fil des instantanés quotidiens._"))
} else {
  d |>
    group_by(name) |>
    arrange(scraped_date) |>
    mutate(idx = 100 * last / first(last)) |>
    ggplot() + geom_line(aes(x = scraped_date, y = idx, color = name)) +
    theme_minimal() + xlab("") + ylab("Base 100") +
    scale_color_commodity() +
    theme(legend.position = "bottom", legend.title = element_blank())
}