Skip to content

Get Historical public XBID trades

Request

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 end and start must not exceed 6 hours.

  • If the requested time interval is too wide, an 400 error will be thrown.

  • If the system is unavailable, the request will return a BAD REQUEST response.

Security
api-key
Query
startstring, (date-time)required
endstring, (date-time)required
GET
/public-api/2.0/xbid/public-trades/history
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'

Responses

OK

Body*/*
Array [
xbidTradeIdinteger, (int64)required
revisionNointeger, (int64)required
tradeQuantitynumberrequired
mwhTradednumberrequired
tradePricenumberrequired
totalPricenumberrequired
deliveryStartTimestring, (date-time)required
deliveryEndTimestring, (date-time)required
contractIdinteger, (int64)required
executionTimestring, (date-time)required
buyDeliveryAreaobject(DeliveryAreaDto)
sellDeliveryAreaobject(DeliveryAreaDto)
revertedbooleanrequired
]
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
  }
]