Skip to content

Get Recent Trades of Participant

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.

Security
api-key
Query
participantIdstring
pageNumberinteger, (int32), [ 0 .. 1000 ]
Default:0
GET
/public-api/2.0/electricity/trades/recent
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'

Responses

OK

Bodyapplication/json
Array [
idstringrequired
productTypestringrequired
Enum:"ELECTRICITY""GAS"
timeblockstring
Enum:"BASELOAD""PEAK""OFFPEAK""INTRADAY""EXPOST""GOPACS"
buyerIdstringrequired
sellerIdstringrequired
orderIdBuystringrequired
orderIdSellstringrequired
quantitynumberrequired
startinteger, (int64)required
Example:1704070000000
endinteger, (int64)required
Example:1704070000000
pricenumberrequired
durationnumberrequired
executedinteger, (int64)required
Example:1704070000000
typestringrequired
buyerEanstring
sellerEanstring
buyOrderMetadataobject
sellOrderMetadataobject
mwhTradednumberrequired
tradedForIdconsbooleanrequired
traderUsernameBuystringrequired
traderUsernameSellstringrequired
revertedbooleanrequired
]
Response
[ { "id": "string", "productType": "ELECTRICITY", "timeblock": "BASELOAD", "buyerId": "string", "sellerId": "string", "orderIdBuy": "string", "orderIdSell": "string", "quantity": 0, "start": 1704070000000, "end": 1704070000000, "price": 0, "duration": 0, "executed": 1704070000000, "type": "string", "buyerEan": "string", "sellerEan": "string", "buyOrderMetadata": {}, "sellOrderMetadata": {}, "mwhTraded": 0, "tradedForIdcons": true, "traderUsernameBuy": "string", "traderUsernameSell": "string", "reverted": true } ]