Precondition

Orders bij ETPA / EPEX en/of Tennet

Create ETPA account in GOPACS and place orders in ETPA (ACC)

Create EPEX account in GOPACS and place orders in EPEX Comtrader (ASIM)

Screenshot 2024-08-20 at 14.14.38.png

Doe een getOrderbook met een organisatie die is geautoriseerd om op EPEX en ETPA orders af te roepen. (Enexis bijvoorbeeld)

getOrderbook
GET http://trading-platforms.acc.gopacs-services.eu/trading-platform/orderbook
Content-Type: application/json
MicroserviceToken: [microservicetoken]
Organisation-Id: [organisation-id]

Vanuit de response kan je daar de order informatie vinden, om vervolgens de volgende request te kunnen aanroepen

Enexis Post clearing voor twee ETPA orders
POST http://trading-platforms.acc.gopacs-services.eu/trading-platform/clearings/cb0c09d8-0f2c-487b-9346-6c55236f82c4
Content-Type: application/json
MicroserviceToken: [microservicetoken]
Organisation-Id: [organisation-id]

{
  "organisationName": "Enexis",
  "orderCallGroups": [
    {
      "id": "cb0c09d8-0f2c-487b-9346-6c55236f82c4", //random uuid
      "orderCalls": [
        {
            "order": {
            "externalId": "76af02b0-dbfe-44ee-8ab4-53c21b80b9a7", //external ID van order uit getOrderbook
            "ean": "999988887777842431",
            "tradingPlatformIdentifier": "etpa",
            "timeSpan": {
              "startTime": "2024-08-20T19:00:00.000Z",
              "endTime": "2024-08-20T20:00:00.000Z"
            },
            "capacityInMegaWatt": 10,
            "pricePerMegaWattHourInEuro": 10,
            "action": "BUY",
            "marketBased": true,
            "usageFraction": null,
            "contractReference": null,
            "facilityType": null
          },
          "desiredCapacityInMegaWatt": 1
        },
         {
          "order": {
            "externalId": "c8a1adb9-c8d7-4f38-bf9f-0403f2e2c584",
            "ean": "299998888666642246",
            "tradingPlatformIdentifier": "etpa",
            "timeSpan": {
              "startTime": "2024-08-20T19:00:00.000Z",
              "endTime": "2024-08-20T20:00:00.000Z"
            },
            "capacityInMegaWatt": 10,
            "pricePerMegaWattHourInEuro": 10,
            "action": "SELL",
            "marketBased": true,
            "usageFraction": null,
            "contractReference": null,
            "facilityType": null
          },
          "desiredCapacityInMegaWatt": 1
        }
      ]
    }
  ]
}

Vervolgens kan je een GetClearing doen met dezelfde random UUID.

getClearing
GET http://trading-platforms.acc.gopacs-services.eu/trading-platform/clearings/cb0c09d8-0f2c-487b-9346-6c55236f82c4
Accept: */*
MicroserviceToken: [microservicetoken]
Organisation-Id: [organisation-id]
Response na POST
POST http://trading-platforms.acc.gopacs-services.eu/trading-platform/clearings/7582a27e-35d9-4717-a5ca-00cc3f8eee36

Redirections: *disable
-> https://trading-platforms.acc.gopacs-services.eu/trading-platform/clearings/7582a27e-35d9-4717-a5ca-00cc3f8eee36

HTTP/1.1 201 
Date: Tue, 20 Aug 2024 12:37:05 GMT
Content-Length: 0
Connection: keep-alive
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY

<Response body is empty>

Response code: 201; Time: 249ms (249 ms); Content length: 0 bytes (0 B)
Response na de GET
GET http://trading-platforms.acc.gopacs-services.eu/trading-platform/clearings/7582a27e-35d9-4717-a5ca-00cc3f8eee36

Redirections:
-> https://trading-platforms.acc.gopacs-services.eu/trading-platform/clearings/7582a27e-35d9-4717-a5ca-00cc3f8eee36

HTTP/1.1 200 
Date: Tue, 20 Aug 2024 12:38:33 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY

{
  "clearedOrderGroups": [
    {
      "id": "7582a27e-35d9-4717-a5ca-00cc3f8eee36",
      "clearedOrders": [
        {
          "externalId": "76af02b0-dbfe-44ee-8ab4-53c21b80b9a7",
          "capacityInMegaWatt": 1,
          "priceInEuro": null
        },
        {
          "externalId": "c8a1adb9-c8d7-4f38-bf9f-0403f2e2c584",
          "capacityInMegaWatt": 1,
          "priceInEuro": null
        }
      ]
    }
  ],
  "finished": true
}
Response file saved.
> 2024-08-20T143833.200.json

Response code: 200; Time: 198ms (198 ms); Content length: 296 bytes (296 B)

Omdat desiredCapacityInMegaWatt = 1 gaat er steeds 1 MW van de order af (wordt gecleard). (dit kan niet bij TenneT (ROP), daar moet alles in een keer afgeroepen worden)

image-20240820-124025.png