• Register

Quantity

[GET] https://api.terna.it/market/v1.0/output/quantity 
These are the UP (SELL) and DOWN (BUY) accepted volumes and their total, in the various market sessions. UP accepted volumes will be equal to the sum of all SELL quantities accepted, as a result of each market session. DOWN accepted volumes will be equal to the sum of all BUY quantities accepted, as a result of each market session. TOTAL accepted volumes will be equal to the difference between all SELL and BUY quantities accepted, as a result of each market session.

Authorization OAuth 2.0

Request Header

API field Type Description Format Card Example
Authorization String Token 1..1   <your access token>
businessID String Identificativo facoltativo che può essere utilizzato per identificare il messaggio durante la fase di analisi quando si apre un ticket al support team di Terna. 0..1 b57aca2f-41b8-4a6e-a43c-2fc5f8309f94
Accept String 0..1 Application/Json

Query Params

API field Type Description Format Card Example
dateFrom string Format dd/mm/yyyy 1..1
dateTo string Format dd/mm/yyyy 1..1
sessionType string If not entered, the filter is not applied and all types will be considered an error 1..1
direction string If not entered, the filter is not applied and all types will be considered an error 0..1

Response Structure 200

API field Type Description Format Card Example
result 0..1
.messagge string 0..1 OK
.status string 0..1 Completed
quantity array 0..n
.reference_date string 0..1 2023-10-24
.date_tz string 0..1 Europe/Rome
.offset string 0..1 +02:00
.zone string 0..1 SICI
.session_type string 0..1 MSD1
.direction string 0..1 UP
.quantity_MWh string 0..1 135

Response Structure 406

API field Type Description Format Card Example
result 0..1
.messagge string 0..1 Input Validation Error: the value entered is incorrect or does not conform to the expected format. Value entered: 200
.status string 0..1 ERROR

Response Structure 500

API field Type Description Format Card Example
result 0..1
.messagge string 0..1 Information retrieval error
.status string 0..1 ERROR

Example

cURL Request

curl --location --request GET 'https://api.terna.it/market/v1.0/output/quantity?dateFrom=22/11/23&dateTo=22/11/23&sessionType=MSD1&direction=UP' --header 'Authorization: <token>'

Response

          {
            "result": {
              "message": "string",
              "status": "string"
            },
            "quantity": [
              {
                "reference_date": "string",
                "date_tz": "string",
                "offset": "string",
                "zone": "string",
                "session_type": "string",
                "direction": "string",
                "quantity_MWh": "string"
              }
            ]
          }