EB NordPool - An elspot fetching Library 🦀
- Fetch elspot prices from NordPool with Rust
Getting Started
use ;
// Select date in "YYYY-MM-DD" format (NOTE: only last two months).
let date = "2025-05-14";
// Select currency.
let currency = "EUR";
// Select regions.
let _regions = vec!; // Must have at least one.
// or select all regions..
let regions = SUPPORTED_REGIONS.iter.map.;
// NOTE: you can easily print out all supported currencies and regions..
list_supported;
list_supported;
// Now we can download data.
let data = from_nordpool.unwrap;
// And now we can extract the prices and do stuff.
let mut regions = data.extract_prices_all_regions;
for prices in regions.iter_mut
println!;
println!;
println!;
Refer to crate docs for more details on how to fetch prices.
Testing
For all but the "ignored" ones found in download.rs.
For ignored ones in download.rs (uses no capture because we need to read output data).