Skip to content

Get Contracts

Request

This XBID contract endpoint will return all the active contracts for XBID. Even though you can’t create orders with the contractId it will give you an indication when the contracts will be opened for trading.

Security
api-key
Query
deliveryAreastring(DeliveryArea)required
Enum:"NL - TTN""DE - 50HzT""DE - AMP""DE - TNG""DE - TTG"
productstring
Enum:"QUARTER""HOUR""HALF_HOUR"
GET
/public-api/1.0/xbid/active-contracts
curl -i -X GET \
  'https://acc-trading.etpa.nl/public-api/1.0/xbid/active-contracts?deliveryArea=NL%20-%20TTN&product=QUARTER' \
  -H 'api_key: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
Array [
productstringrequired
contractIdinteger, (int64)required
deliveryAreaobject(DeliveryAreaDto)required
startTimeDeliveryPeriodinteger, (int64)required
Example:1517406300000
endTimeDeliveryPeriodinteger, (int64)required
Example:1517406300000
startTradinginteger, (int64)
Example:1517406300000
endTradinginteger, (int64)
Example:1517406300000
]
Response
[ { "product": "string", "contractId": 0, "deliveryArea": {}, "startTimeDeliveryPeriod": 1517406300000, "endTimeDeliveryPeriod": 1517406300000, "startTrading": 1517406300000, "endTrading": 1517406300000 } ]