OK
ETPA Public API (1.0)
For access to the ETPA platform, please send an e-mail to support@etpa.nl
Congestion Management
This API provides congestion data to support grid management and decision-making. It is used exclusively by GOPACS to access spread bucket information related to electricity grid congestion
NOTE: This endpoint can be only used by GOPACS.
Congestion State Check
This API allows GOPACS to check the current status of congestion spread buckets. It helps determine whether congestion data is available or up to date.
NOTE: This endpoint can be only used by GOPACS.
GOPACS Orderbook Locking
NOTE: This API can only be used by GOPACS.
GOPACS Orders – Grid Operator v2
NOTE: This API can only be used by GOPACS
Orders v2
The following things are changed from version 1:
- You will get an error code and an error message when the order is incorrect.
- You will get an
orderIdback from the post request to check the status of your order."Intraday"orders will be rejected from this endpoints when"XBID"functionality is enabled."Expost"orders will still work. You can create"Intraday"orders for"XBID"using the XBID Orders endpoints
Request
The recent trades will only return your trades back from the last 2 days. The participantId is only useful for brokers.
The pagination works slightly different than the other endpoints. It will return the first 1000 results and after that you can add the pageNumber as a parameter to get the remaining results.
- https://acc-trading.etpa.nl/public-api/2.0/electricity/trades/recent
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://acc-trading.etpa.nl/public-api/2.0/electricity/trades/recent?participantId=string&pageNumber=0' \
-H 'api_key: YOUR_API_KEY_HERE'{ "id": "string", "productType": "ELECTRICITY", "timeblock": "BASELOAD", "buyerId": "string", "sellerId": "string", "orderIdBuy": "string", "orderIdSell": "string", "quantity": 0, "start": "2019-08-24T14:15:22Z", "end": "2019-08-24T14:15:22Z", "price": 0, "duration": 0, "executed": "2019-08-24T14:15:22Z", "type": "string", "buyerEan": "string", "sellerEan": "string", "buyOrderMetadata": { "property1": "string", "property2": "string" }, "sellOrderMetadata": { "property1": "string", "property2": "string" }, "mwhTraded": 0, "tradedForIdcons": true, "traderUsernameBuy": "string", "traderUsernameSell": "string", "reverted": true }
Request
NOTE: This endpoint is not supported anymore. Please have a look at Trades v3
Get trades filtered on own orders or not with the my-parameter and date based on start and end.
In the Trade endpoint, we have introduced pagination. The reason is that when you apply no filters your request won’t be time-out and you won’t be overloaded with data. When you don’t provide any parameters, the application will return with the last 100 trades and give you the option to get the next 100 trades. To do this you use the cursor parameter with nextCursor value that has been given to you from the response.
It makes use of pagination V1.0
Return only your own trades or only trades that are not yours. A trade is considered your own trade if you were the buyer or the seller.
Return trades created after the given timestamp. Value must be a Unix timestamp in milliseconds.
Return trades created before the given timestamp. Value must be a Unix timestamp in milliseconds.
The field to filter on start and/or end if specified
- https://acc-trading.etpa.nl/public-api/2.0/electricity/trades
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://acc-trading.etpa.nl/public-api/2.0/electricity/trades?cursor=string&count=100&my_own_trades=true&participantId=string&orderId=string&tradeId=string&start=0&end=0&field=START&timeblocks=INTRADAY' \
-H 'api_key: YOUR_API_KEY_HERE'{ "data": [ { … } ], "nextCursor": "string" }
- https://acc-trading.etpa.nl/public-api/2.0/electricity/trades/{tradeId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://acc-trading.etpa.nl/public-api/2.0/electricity/trades/{tradeId}' \
-H 'api_key: YOUR_API_KEY_HERE'{ "id": "string", "tradeId": "string", "productType": "ELECTRICITY", "timeblock": "BASELOAD", "buyerId": "string", "sellerId": "string", "orderIdBuy": "string", "orderIdSell": "string", "buyerEan": "string", "sellerEan": "string", "buyTraderName": "string", "sellTraderName": "string", "buyOrderMetadata": { "property1": "string", "property2": "string" }, "sellOrderMetadata": { "property1": "string", "property2": "string" }, "quantity": 0, "start": 1694422800000, "end": 1694422800000, "executed": 1694422800000, "duration": 0, "mwhTraded": 0, "price": 0, "type": "string", "tradedForIdcons": true, "reverted": true, "revertedAt": 1694422800000 }
XBID Orders v1
The XBID Orders v1 will be used for managing orders for XBID. This API will also function in case of a disconnection of XBID.
Be aware: In case the XBID connection gets lost. The new orders which are created with the XBID order API will be automatically forwarded to the local intraday orderbook. You can use the XBID Status API for the current connection of XBID.
XBID Order Status v1
The XBID Order Status Controller provides endpoints to retrieve both the history and current status of XBID orders and baskets. It supports filtering by orderId or basketId and requires an API key for authentication. Responses include detailed order status entries or lists, with proper handling of cases where no matching records are found.
XBID Reporting v1
The XBID Order API is used for creating orders for XBID. It also remains functional in the event of a disconnection from XBID.
⚠️ Important: If the XBID connection is lost, any new orders created via the XBID Order API will be automatically forwarded to the local intraday orderbook. For monitoring the current connection status of XBID, you can use the XBID Status v1 API.
XBID Wallet v1
With XBID, wallets are separated. Before trading on XBID, you must transfer funds from your Trader Wallet to your XBID Wallet.
- Transfers can be performed via the UI or the API.
- This API provides:
- Information about all transactions that have occurred.
- The ability to transfer funds between the Trader Wallet and the XBID Wallet.