Skip to content

Instantly share code, notes, and snippets.

@jstaffans
Created February 7, 2017 12:28
Show Gist options
  • Save jstaffans/798360bd82aafbfbd5ab362e7f76e23a to your computer and use it in GitHub Desktop.
Save jstaffans/798360bd82aafbfbd5ab362e7f76e23a to your computer and use it in GitHub Desktop.
ENTSO-e API notes

ENTSO-e REST API notes

  • Actual generation: 16.1.B&C, documentType=A75
  • ProcessType "realised": A16
  • 50Hz area: 10YDE-VE-------2

Examples

Actual generation 50Hz area, all power system resources (PSR:s), ie all types of power generation

curl /api?documentType=A75&processType=A16&in_Domain=10YDE-VE-------2&periodStart=201702012300&periodEnd=201702022300

Response:

<?xml version="1.0" encoding="UTF-8"?>
<GL_MarketDocument xmlns="urn:iec62325.351:tc57wg16:451-6:generationloaddocument:3:0">
    <mRID>731ff11ed02a40a88d8e35c6daec9254</mRID>
    <revisionNumber>1</revisionNumber>
    <type>A75</type>
    <process.processType>A16</process.processType>
    <sender_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</sender_MarketParticipant.mRID>
    <sender_MarketParticipant.marketRole.type>A32</sender_MarketParticipant.marketRole.type>
    <receiver_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</receiver_MarketParticipant.mRID>
    <receiver_MarketParticipant.marketRole.type>A33</receiver_MarketParticipant.marketRole.type>
    <createdDateTime>2017-02-04T21:01:42Z</createdDateTime>
    <time_Period.timeInterval>
        <start>2017-02-04T12:00Z</start>
        <end>2017-02-04T20:30Z</end>
    </time_Period.timeInterval>
    <TimeSeries>
        <mRID>1</mRID>
        <businessType>A01</businessType>
        <objectAggregation>A08</objectAggregation>
        <inBiddingZone_Domain.mRID codingScheme="A01">10YDE-VE-------2</inBiddingZone_Domain.mRID>
        <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name>
        <curveType>A01</curveType>
        <MktPSRType>
            <psrType>B06</psrType>
        </MktPSRType>
        <Period>
            <timeInterval>
                <start>2017-02-04T12:00Z</start>
                <end>2017-02-04T20:30Z</end>
            </timeInterval>
            <resolution>PT15M</resolution>
            <Point>
                <position>1</position>
                <quantity>203</quantity>
            </Point>
            <Point>
                <position>2</position>
                <quantity>205</quantity>
            </Point>
            <Point>
                <position>3</position>
                <quantity>205</quantity>
            </Point>

            ...

Key points:

  • need to collect psrType:s for renewable vs non-renewable (see [Appendix A.5. PsrType] psrType).
  • resolution is 15 minutes (PT15M)

Forecast

TODO

Implementation

  • Just wipe the DB every 15 minutes and refresh it with the latest data from ENTSO-e, including forecast?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment