Retrieve historical public trades within a specified time range. This endpoint is suitable when needing historical trade data in within controlled time ranges without overloading ETPA's system
Constraints:
The difference between
endandstartmust not exceed 6 hours.If the requested time interval is too wide, an
400 errorwill be thrown.If the system is unavailable, the request will return a
BAD REQUESTresponse.
Security
api-key
GET
curl -i -X GET \
'https://acc-trading.etpa.nl/public-api/2.0/xbid/public-trades/history?start=2019-08-24T14%3A15%3A22Z&end=2019-08-24T14%3A15%3A22Z' \
-H 'api_key: YOUR_API_KEY_HERE'OK
Array [
]
Response
[
{
"xbidTradeId": 0,
"revisionNo": 0,
"tradeQuantity": 0,
"mwhTraded": 0,
"tradePrice": 0,
"totalPrice": 0,
"deliveryStartTime": "2019-08-24T14:15:22Z",
"deliveryEndTime": "2019-08-24T14:15:22Z",
"contractId": 0,
"executionTime": "2019-08-24T14:15:22Z",
"buyDeliveryArea": {
"country": "DE",
"eic": "10YDE-VE-------2",
"name": "DE - 50HzT"
},
"sellDeliveryArea": {
"country": "DE",
"eic": "10YDE-VE-------2",
"name": "DE - 50HzT"
},
"reverted": true
}
]