Collection of tariffs and search functions from EDSN. Last update 2026-01-01
$ dotnet add package Kikker.Edsn.TariffsThis package contains EDSN Grid Operator (Netbeheerder) Tariffs
Latest data:
Rendo - 2025-01-01Liander - 2025-01-01Enexis - 2025-01-01Stedin - 2025-01-01Stedin Zeeland - 2025-01-01Westland Infra - 2025-01-01Coteq - 2025-01-01Endinet - 2016-01-01 (deprecated grid operator)FAT_RNB_001 - 2013-08-01 (testing grid operator)Grid Operators are updating their prices up to 2 times per year (usually on new year and July 1st).
These tariffs are downloaded from EDSN and stored in this package.
Every tariff is identified with CAPTAR code.
This package is published via nuget: nuget.org
Latest version is 0.9.18
.net cli dotnet add package Kikker.Edsn.Tariffs --version 0.9.18
package manager: NuGet\Install-Package Kikker.Edsn.Tariffs -Version 0.9.18
package reference: <PackageReference Include="Kikker.Edsn.Tariffs" Version="0.9.18" />
On constructor - the array with tariffs is initiated.
// init collection
var tariffs = new Kikker.Edsn.Tariffs.CaptarTariffs();
// Find all tarifs for single CAPTAR code
List<Tariff> foundTariffs = tariffs.FindTariffsForCaptar("8742030116116");
Console.WriteLine("Found tariffs for captar 8742030116116");
foreach (var tariff in foundTariffs)
{
Console.WriteLine(tariff);
}
// Look for single tariff. Result could be NULL (not found)
Tariff? singleTariff = tariffs.FindTariff("8742030116116", new DateTime(2023, 11, 10));
if (singleTariff is not null)
{
Console.WriteLine("Found single tariff:");
Console.WriteLine(singleTariff);
}
else
{
Console.WriteLine("Tariff not found");
}
Result:
Found tariffs for captar 8742030116116
Product = ELK CapTarCode = 8742030116116 DayTariff = 4.7726 From = 2020-01-01 Until = 2020-03-01
Product = ELK CapTarCode = 8742030116116 DayTariff = 4.7726 From = 2020-03-01 Until = 2021-01-01
Product = ELK CapTarCode = 8742030116116 DayTariff = 5.0478 From = 2021-01-01 Until = 2022-01-01
Product = ELK CapTarCode = 8742030116116 DayTariff = 5.3832 From = 2022-01-01 Until = 2023-01-01
Product = ELK CapTarCode = 8742030116116 DayTariff = 8.0586 From = 2023-01-01 Until = 2024-01-01
Product = ELK CapTarCode = 8742030116116 DayTariff = 9.4850 From = 2024-01-01 Until = null
Found single tariff:
Product = ELK CapTarCode = 8742030116116 DayTariff = 8.0586 From = 2023-01-01 Until = 2024-01-01
Single tariff is represented with 5 parameters:
Product of type string can be ELK or GAS,CapTarCode of type string ,DayTariff of type decimal,From of type DateTime represents from which date this tariff is valid,Until of type DateTime represents until which date this tariff is valid.Until can be null which means that the tariff is still valid.
You can also request a list of connections that belong to the grid operator. For every connection you can see the "human friendly" name, captar code and price.
Price depends on your request. You can request details with specific date, specific year or without any date parameter - that will apply today automatically.
var gridOperator = tariffs.FindGridOperatorPrices("8716921000006");
Console.WriteLine(gridOperator);This will generate output
Name Stedin Netbeheer, SubName Stedin Netbeheer Midden-Holland, EAN 8716892000005, SubEAN 8716921000006
Connections:
Product: ELK Default: False Connection: LS geschakeld, ID: 1, DayPriceNoVAT: 0.1289
Product: ELK Default: False Connection: t/m 1 x 10A, ID: 2, DayPriceNoVAT: 0.3196
Product: ELK Default: True Connection: >1 x 10A t/m 3 x 25A, ID: 3, DayPriceNoVAT: 0.9575
Product: ELK Default: False Connection: >3 x 25A t/m 3 x 35A, ID: 4, DayPriceNoVAT: 3.9354
Product: ELK Default: False Connection: >3 x 35A t/m 3 x 50A, ID: 5, DayPriceNoVAT: 5.7578
Product: ELK Default: False Connection: >3 x 50A t/m 3 x 63A, ID: 6, DayPriceNoVAT: 7.5802
Product: ELK Default: False Connection: >3 x 63A t/m 3 x 80A, ID: 7, DayPriceNoVAT: 9.4026
Product: GAS Default: False Connection: G4 of G65 <= 10 m3/h (< 500 m3/jaar), From: 0 Until: 500 ID: 1, DayPriceNoVAT: 0.3712
Product: GAS Default: True Connection: G4 of G65 <= 10 m3/h (>= 500 < 4.000 m3/jaar), From: 501 Until: 4000 ID: 2, DayPriceNoVAT: 0.5109
Product: GAS Default: False Connection: G4 of G65 <= 10 m3/h (>= 4.000 m3/jaar), From: 4001 Until: 10000 ID: 3, DayPriceNoVAT: 0.7904
Product: GAS Default: False Connection: G10 > 10 m3/h <= 16 m3/h, From: 10001 Until: 15000 ID: 4, DayPriceNoVAT: 1.4021
Product: GAS Default: False Connection: G16 > 16 m3/h <= 25 m3/h, From: 15001 Until: 30000 ID: 5, DayPriceNoVAT: 1.9617
Product: GAS Default: False Connection: G25 > 25 m3/h <= 40 m3/h, From: 30001 Until: 9999999 ID: 6, DayPriceNoVAT: 3.3949
Or you can request all grid operators with their connection prices for certain year:
List<GridOperator> allGridOperators = tariffs.AllGridOperators(2023);This will take all grid operators and their connection and apply prices from 2023-01-01
On every GridOperator are assigned several connecrions. Every connection has the CAPTAR designator and it is used to find appropriate price (for the date).
Every connection has fields:
Product of type string can be ELK or GASDefault of type boolean - it is used from frontend to assume the default (most common) connection typeConnection of type string - it is human friendly connection descriptionUsageFrom of type decimal - only applicable for GAS connectionsUsageUntil of type decimal - only applicable for GAS connectionDayPriceNoVAT of type decimal - it is daily price excluding the VATDayPriceVAT of type decimal - that is daily price including the VATYearPriceNoVAT of type decimal - it is yearly price excluding the VATYearPriceVAT of type decimal - that is yearly price including the VATDownload new tariffs (csv) from EDSN
Place file in the folder InputFiles and rename the file to contain word tariffs in the name (for maintenance friendly - also include the year in the name).
Update .csproj file to include that file as EmbeddedResource in the ItemGroup section
<ItemGroup>
<None Include="kikker-logo.png" Pack="true" PackagePath="\" />
<None Include="README.md" Pack="true" PackagePath="\"/>
<EmbeddedResource Include="InputFiles\tariffs2021.csv" Pack="true" PackagePath="tariffs" />
<EmbeddedResource Include="InputFiles\tariffs2022.csv" Pack="true" PackagePath="tariffs" />
<EmbeddedResource Include="InputFiles\tariffs2023.csv" Pack="true" PackagePath="tariffs" />
<EmbeddedResource Include="InputFiles\tariffs2024.csv" Pack="true" PackagePath="tariffs" />
<EmbeddedResource Include="InputFiles\tariffs2025_1.csv" Pack="true" PackagePath="tariffs" />
<EmbeddedResource Include="InputFiles\tariffs2025_2.csv" Pack="true" PackagePath="tariffs" />
<EmbeddedResource Include="InputFiles\tariffs2026.csv" Pack="true" PackagePath="tariffs" />
</ItemGroup>Make sure that everything works and update the package version and description (also on the .csproj file)