Download OpenAPI specification:Download
The ETSS Market Data API is an HTTP REST API served by ENEX. It is the same API the ETSS web client uses to communicate with the Market Data server, so everything the web client can do, can be done with the API. Most of the client's commands map directly to API endpoints.
The authentication for ETSS Market Data API is centralized and implements single sign-on and access control for modern web applications and APIs using protocol OAuth2 .
Moreover, the authentication process is token based, which means that in order to access an API, the API request must include a valid access token, issued by the ENEX authentication service.
To obtain an access token, a standard OAuth2 'client credentials' flow should be followed against the ENEX Identity Management System.
All subsequent calls to the API methods POST / GET / DELETE should send an Authorization: Bearer <access token> header.
This API uses OAuth 2 with the implicit grant flow. More info
| Security Scheme Type | OAuth2 |
|---|---|
| implicit OAuth Flow | Authorization URL: https://login.helex.gr/ms_oauth/oauth2/endpoints/oauthservice/tokens Scopes:
|
Requests in this section, provide Trading System specific data, for eventual use in subsequent requests.
The list of traded products as defined in the XBID trading system.
| productName | string Example: productName=XBID_Half_Hour_Power, XBID_Hour_Power, XBID_Quarter_Hour_Power The product id sought |
| state | string Enum: "ACTI" "IACT" "HIBE" The state of products sought |
| X-ETSS-CUID | string <uuid> |
{- "serverTime": "2022-01-01T23:00:00.000000+02:00",
- "data": {
- "products": {
- "property1": {
- "productType": "COM",
- "productName": "XBID_Half_Hour_Power",
- "displayName": "XBID_Half_Hour_Power",
- "currency": "EUR",
- "revisionNo": "int32",
- "qtyUnit": "MW",
- "minQty": "100",
- "maxQty": "999000",
- "lotSize": "100",
- "minPrice": "-999900",
- "maxPrice": "999900",
- "tickSize": "1",
- "decShiftPrice": "2",
- "decShiftQty": "3",
- "deliveryDuration": "P0Y0M0DT0H30M0S",
- "refStartOfDelivery": "2021-12-10T15:00:00+01:00",
- "activationDays": "['monday','tuesday','wednesday','thursday','friday','saturday','sunday']",
- "gapBtwContracts": "P0Y0M0DT0H0M0S",
- "activationTime": "2021-12-10T15:00:00+01:00",
- "changingName": "true",
- "state": "ACTI",
- "exchangeId": "XSOB",
- "assetType": "COM",
- "contractsGenerationNumber": "240",
- "contActBusinessDay": "false",
- "contExpiryBusinessDay": "false",
- "productConfigurations": {
- "property1": "string",
- "property2": "string"
}, - "contractActivationPoint": {
- "reference": "ABSOLUTE_START",
- "offset": "P0Y0M0DT16H0M0S, -P0Y0M0DT16H0M0S",
- "fixedTime": "2021-12-10T15:00:00+01:00"
}, - "contractExpiryPoint": {
- "reference": "ABSOLUTE_START",
- "offset": "P0Y0M0DT16H0M0S, -P0Y0M0DT16H0M0S",
- "fixedTime": "2021-12-10T15:00:00+01:00"
}, - "defaultSchedule": {
- "scheduleId": "3",
- "scheduleName": "XBID_Default_schedule",
- "tradingDays": "['monday','tuesday','wednesday','thursday','friday','saturday','sunday']",
- "tradeOnHolidays": "false",
- "tradingPhases": [
- {
- "phaseId": "7",
- "phaseName": "Before trading",
- "phaseType": "CLSD",
- "referencePoint": {
- "reference": "ABSOLUTE_START",
- "offset": "P0Y0M0DT16H0M0S, -P0Y0M0DT16H0M0S",
- "fixedTime": "2021-12-10T15:00:00+01:00"
}
}
]
}, - "deliveryAreasSchedules": {
- "property1": [
- {
- "scheduleId": "3",
- "scheduleName": "XBID_Default_schedule",
- "tradingDays": "['monday','tuesday','wednesday','thursday','friday','saturday','sunday']",
- "tradeOnHolidays": "false",
- "tradingPhases": [
- {
- "phaseId": "7",
- "phaseName": "Before trading",
- "phaseType": "CLSD",
- "referencePoint": {
- "reference": "ABSOLUTE_START",
- "offset": "P0Y0M0DT16H0M0S, -P0Y0M0DT16H0M0S",
- "fixedTime": "2021-12-10T15:00:00+01:00"
}
}
]
}
], - "property2": [
- {
- "scheduleId": "3",
- "scheduleName": "XBID_Default_schedule",
- "tradingDays": "['monday','tuesday','wednesday','thursday','friday','saturday','sunday']",
- "tradeOnHolidays": "false",
- "tradingPhases": [
- {
- "phaseId": "7",
- "phaseName": "Before trading",
- "phaseType": "CLSD",
- "referencePoint": {
- "reference": "ABSOLUTE_START",
- "offset": "P0Y0M0DT16H0M0S, -P0Y0M0DT16H0M0S",
- "fixedTime": "2021-12-10T15:00:00+01:00"
}
}
]
}
]
}
}, - "property2": {
- "productType": "COM",
- "productName": "XBID_Half_Hour_Power",
- "displayName": "XBID_Half_Hour_Power",
- "currency": "EUR",
- "revisionNo": "int32",
- "qtyUnit": "MW",
- "minQty": "100",
- "maxQty": "999000",
- "lotSize": "100",
- "minPrice": "-999900",
- "maxPrice": "999900",
- "tickSize": "1",
- "decShiftPrice": "2",
- "decShiftQty": "3",
- "deliveryDuration": "P0Y0M0DT0H30M0S",
- "refStartOfDelivery": "2021-12-10T15:00:00+01:00",
- "activationDays": "['monday','tuesday','wednesday','thursday','friday','saturday','sunday']",
- "gapBtwContracts": "P0Y0M0DT0H0M0S",
- "activationTime": "2021-12-10T15:00:00+01:00",
- "changingName": "true",
- "state": "ACTI",
- "exchangeId": "XSOB",
- "assetType": "COM",
- "contractsGenerationNumber": "240",
- "contActBusinessDay": "false",
- "contExpiryBusinessDay": "false",
- "productConfigurations": {
- "property1": "string",
- "property2": "string"
}, - "contractActivationPoint": {
- "reference": "ABSOLUTE_START",
- "offset": "P0Y0M0DT16H0M0S, -P0Y0M0DT16H0M0S",
- "fixedTime": "2021-12-10T15:00:00+01:00"
}, - "contractExpiryPoint": {
- "reference": "ABSOLUTE_START",
- "offset": "P0Y0M0DT16H0M0S, -P0Y0M0DT16H0M0S",
- "fixedTime": "2021-12-10T15:00:00+01:00"
}, - "defaultSchedule": {
- "scheduleId": "3",
- "scheduleName": "XBID_Default_schedule",
- "tradingDays": "['monday','tuesday','wednesday','thursday','friday','saturday','sunday']",
- "tradeOnHolidays": "false",
- "tradingPhases": [
- {
- "phaseId": "7",
- "phaseName": "Before trading",
- "phaseType": "CLSD",
- "referencePoint": {
- "reference": "ABSOLUTE_START",
- "offset": "P0Y0M0DT16H0M0S, -P0Y0M0DT16H0M0S",
- "fixedTime": "2021-12-10T15:00:00+01:00"
}
}
]
}, - "deliveryAreasSchedules": {
- "property1": [
- {
- "scheduleId": "3",
- "scheduleName": "XBID_Default_schedule",
- "tradingDays": "['monday','tuesday','wednesday','thursday','friday','saturday','sunday']",
- "tradeOnHolidays": "false",
- "tradingPhases": [
- {
- "phaseId": "7",
- "phaseName": "Before trading",
- "phaseType": "CLSD",
- "referencePoint": {
- "reference": "ABSOLUTE_START",
- "offset": "P0Y0M0DT16H0M0S, -P0Y0M0DT16H0M0S",
- "fixedTime": "2021-12-10T15:00:00+01:00"
}
}
]
}
], - "property2": [
- {
- "scheduleId": "3",
- "scheduleName": "XBID_Default_schedule",
- "tradingDays": "['monday','tuesday','wednesday','thursday','friday','saturday','sunday']",
- "tradeOnHolidays": "false",
- "tradingPhases": [
- {
- "phaseId": "7",
- "phaseName": "Before trading",
- "phaseType": "CLSD",
- "referencePoint": {
- "reference": "ABSOLUTE_START",
- "offset": "P0Y0M0DT16H0M0S, -P0Y0M0DT16H0M0S",
- "fixedTime": "2021-12-10T15:00:00+01:00"
}
}
]
}
]
}
}
}
}
}| date | string Example: date=2022-02-24 The delivery date for which the contracts are effective. (YYYY-MM-DD ISO 8601) |
| dateTo | string Example: dateTo=2022-02-25 The last (inclusive) delivery date of the range for which the contracts are effective. (YYYY-MM-DD ISO 8601) |
| contractId | integer <int64> The contract id sought |
| state | string Enum: "ACTI" "IACT" "HIBE" The state of contracts sought |
| tradingPhase | string Enum: "CLSD" "CONT" The trading phase of contracts sought |
| product | string Example: product=XBID_Hour_Power,XBID_Quarter_Hour_Power The (comma delimited) product names of contracts sought |
| X-ETSS-CUID | string <uuid> |
{- "serverTime": "2022-01-01T23:00:00.000000+02:00",
- "data": {
- "property1": {
- "referenceData": {
- "contractId": 4197,
- "revisionNo": "2",
- "lastUpdateDT": "2019-01-01T23:00:00.000000+01:00",
- "product": "XBID_Half_Hour_Power",
- "productRevisionNo": "2",
- "name": "20210509 00:30-20210509 01:00",
- "longName": "20210509 00:30-20210509 01:00",
- "deliveryStart": "2021-12-10T15:00:00+01:00",
- "deliveryEnd": "2021-12-10T15:00:00+01:00",
- "predefined": "true",
- "state": "ACTI",
- "tradingPhase": "CLSD",
- "duration": "0.5",
- "activationPoint": "2021-12-10T15:00:00+01:00",
- "expirationPoint": "2021-12-10T15:00:00+01:00",
- "deliveryAreas": [
- {
- "deliveryAreaId": "10YGR-HTSO----C8",
- "state": "IACT",
- "tradingPhase": "CLSD",
- "tradingPhaseStart": "2021-12-10T15:00:00+01:00",
- "tradingPhaseEnd": "2021-12-10T15:00:00+01:00"
}
]
}, - "orders": {
- "contractId": 4197,
- "revisionNo": "2",
- "lastUpdateDT": "2019-01-01T23:00:00.000000+01:00",
- "buy": [
- {
- "contractId": 4197,
- "deliveryArea": "10YGR-HTSO----C8",
- "orderSide": "B",
- "orderId": 3242462462,
- "qty": "1.000 [MWh]",
- "price": "3700",
- "orderEntryTime": "2022-01-01T13:00:00.000000+01:00"
}
], - "sell": [
- {
- "contractId": 4197,
- "deliveryArea": "10YGR-HTSO----C8",
- "orderSide": "B",
- "orderId": 3242462462,
- "qty": "1.000 [MWh]",
- "price": "3700",
- "orderEntryTime": "2022-01-01T13:00:00.000000+01:00"
}
]
}, - "trades": {
- "contractId": 4197,
- "lastUpdateDT": "2019-01-01T23:00:00.000000+01:00",
- "vwap": 0,
- "priceHigh": 0,
- "priceLow": 0,
- "turnover": 0,
- "tradesList": [
- {
- "tradeId": 87,
- "revisionNo": "2",
- "state": "ACTI",
- "contractId": 4197,
- "qty": "1000",
- "price": "3200",
- "value": 0,
- "tradeExecTime": "2022-01-01T13:00:00.000000+01:00",
- "buyDeliveryAreaId": "10YGR-HTSO----C8",
- "sellDeliveryAreaId": "10YGR-HTSO----C8"
}
]
}, - "bbo": {
- "buy": [
- {
- "quantity": "1.000 [MWh]",
- "price": "3700",
- "orderCount": 3242462462
}
], - "sell": [
- {
- "quantity": "1.000 [MWh]",
- "price": "3700",
- "orderCount": 3242462462
}
]
}
}, - "property2": {
- "referenceData": {
- "contractId": 4197,
- "revisionNo": "2",
- "lastUpdateDT": "2019-01-01T23:00:00.000000+01:00",
- "product": "XBID_Half_Hour_Power",
- "productRevisionNo": "2",
- "name": "20210509 00:30-20210509 01:00",
- "longName": "20210509 00:30-20210509 01:00",
- "deliveryStart": "2021-12-10T15:00:00+01:00",
- "deliveryEnd": "2021-12-10T15:00:00+01:00",
- "predefined": "true",
- "state": "ACTI",
- "tradingPhase": "CLSD",
- "duration": "0.5",
- "activationPoint": "2021-12-10T15:00:00+01:00",
- "expirationPoint": "2021-12-10T15:00:00+01:00",
- "deliveryAreas": [
- {
- "deliveryAreaId": "10YGR-HTSO----C8",
- "state": "IACT",
- "tradingPhase": "CLSD",
- "tradingPhaseStart": "2021-12-10T15:00:00+01:00",
- "tradingPhaseEnd": "2021-12-10T15:00:00+01:00"
}
]
}, - "orders": {
- "contractId": 4197,
- "revisionNo": "2",
- "lastUpdateDT": "2019-01-01T23:00:00.000000+01:00",
- "buy": [
- {
- "contractId": 4197,
- "deliveryArea": "10YGR-HTSO----C8",
- "orderSide": "B",
- "orderId": 3242462462,
- "qty": "1.000 [MWh]",
- "price": "3700",
- "orderEntryTime": "2022-01-01T13:00:00.000000+01:00"
}
], - "sell": [
- {
- "contractId": 4197,
- "deliveryArea": "10YGR-HTSO----C8",
- "orderSide": "B",
- "orderId": 3242462462,
- "qty": "1.000 [MWh]",
- "price": "3700",
- "orderEntryTime": "2022-01-01T13:00:00.000000+01:00"
}
]
}, - "trades": {
- "contractId": 4197,
- "lastUpdateDT": "2019-01-01T23:00:00.000000+01:00",
- "vwap": 0,
- "priceHigh": 0,
- "priceLow": 0,
- "turnover": 0,
- "tradesList": [
- {
- "tradeId": 87,
- "revisionNo": "2",
- "state": "ACTI",
- "contractId": 4197,
- "qty": "1000",
- "price": "3200",
- "value": 0,
- "tradeExecTime": "2022-01-01T13:00:00.000000+01:00",
- "buyDeliveryAreaId": "10YGR-HTSO----C8",
- "sellDeliveryAreaId": "10YGR-HTSO----C8"
}
]
}, - "bbo": {
- "buy": [
- {
- "quantity": "1.000 [MWh]",
- "price": "3700",
- "orderCount": 3242462462
}
], - "sell": [
- {
- "quantity": "1.000 [MWh]",
- "price": "3700",
- "orderCount": 3242462462
}
]
}
}
}
}| marketAreaId | string The market area sought |
| X-ETSS-CUID | string <uuid> |
{- "serverTime": "2022-01-01T23:00:00.000000+02:00",
- "data": {
- "markets": {
- "property1": {
- "revisionNo": "0",
- "mktAreaId": "10Y-DUMMY-GR---H",
- "name": "GR",
- "longName": "Greece",
- "state": "ACTI",
- "deliveryAreas": [
- {
- "revisionNo": "2",
- "name": "ADMIE",
- "longName": "Greece",
- "mktAreaId": "10Y-DUMMY-GR---H",
- "deliveryAreaId": "10YGR-HTSO-----Y",
- "state": "ACTI",
- "productNames": [
- "XBID_Half_Hour_Power, XBID_Hour_Power"
]
}
]
}, - "property2": {
- "revisionNo": "0",
- "mktAreaId": "10Y-DUMMY-GR---H",
- "name": "GR",
- "longName": "Greece",
- "state": "ACTI",
- "deliveryAreas": [
- {
- "revisionNo": "2",
- "name": "ADMIE",
- "longName": "Greece",
- "mktAreaId": "10Y-DUMMY-GR---H",
- "deliveryAreaId": "10YGR-HTSO-----Y",
- "state": "ACTI",
- "productNames": [
- "XBID_Half_Hour_Power, XBID_Hour_Power"
]
}
]
}
}
}
}| date | string Example: date=2022-05-18 The delivery date for which the atcs are effective. (YYYY-MM-DD ISO 8601) |
| hubFrom | string The source hub's delivery area Id (EIC) |
| deliveryStart | string Example: deliveryStart=2022-01-01T23:00+01:00 The deliveryStart datetime in Europe/Amsterdam timezone, for which the atcs are effective. CET/CEST ISO 8601 YYYY-MM-DDThh:mmTZD |
| X-ETSS-CUID | string <uuid> |
{- "serverTime": "2022-01-01T23:00:00.000000+02:00",
- "data": [
- {
- "deliveryStart": "2021-12-10T15:00:00+01:00",
- "deliveryEnd": "2021-12-10T15:00:00+01:00",
- "timestamp": "2022-01-01T13:00:00.000000+01:00",
- "sourceHubsList": {
- "10YGR-HTSO-----Y": {
- "from": "10YGR-HTSO-----Y",
- "to": {
- "10YCA-BULGARIA-R": {
- "in": 440000,
- "out": 550000
}, - "10YHU-MAVIR----U": {
- "in": 660000,
- "out": 660000
}, - "10YCZ-CEPS-----N": {
- "in": 770000,
- "out": 770000
}
}
}, - "10YCA-BULGARIA-R": {
- "from": "10YCA-BULGARIA-R",
- "to": {
- "10YHU-MAVIR----U": {
- "in": 440000,
- "out": 550000
}, - "10YCZ-CEPS-----N": {
- "in": 100000,
- "out": 100000
}
}
}
}
}
]
}| date | string Example: date=2022-05-18 The delivery date for which the atcs are effective. (YYYY-MM-DD ISO 8601) |
| hubFrom | string The source hub's delivery area Id (EIC) |
| deliveryStart | string Example: deliveryStart=2022-01-01T23:00+01:00 The deliveryStart datetime in Europe/Amsterdam timezone, for which the atcs are effective. CET/CEST ISO 8601 YYYY-MM-DDThh:mmTZD |
| X-ETSS-CUID | string <uuid> |
{- "serverTime": "2022-01-01T23:00:00.000000+02:00",
- "data": [
- {
- "deliveryStart": "2021-12-10T15:00:00+01:00",
- "deliveryEnd": "2021-12-10T15:00:00+01:00",
- "timestamp": "2022-01-01T13:00:00.000000+01:00",
- "sourceHubsList": {
- "10YGR-HTSO-----Y": {
- "from": "10YGR-HTSO-----Y",
- "to": {
- "10YCA-BULGARIA-R": {
- "in": 440000,
- "out": 550000
}, - "10YHU-MAVIR----U": {
- "in": 660000,
- "out": 660000
}, - "10YCZ-CEPS-----N": {
- "in": 770000,
- "out": 770000
}
}
}, - "10YCA-BULGARIA-R": {
- "from": "10YCA-BULGARIA-R",
- "to": {
- "10YHU-MAVIR----U": {
- "in": 440000,
- "out": 550000
}, - "10YCZ-CEPS-----N": {
- "in": 100000,
- "out": 100000
}
}
}
}
}
]
}