{
  "openapi": "3.1.0",
  "info": {
    "title": "Auctions API",
    "description": "ETPA Auctions Platform API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "http://infra-716-prod1.etpa.tech",
      "description": "Generated server url"
    }
  ],
  "security": [
    {
      "api-key": []
    }
  ],
  "tags": [
    {
      "name": "Wallet Transaction",
      "description": "Wallet transactions - query completed and pending transactions"
    },
    {
      "name": "Auction Status",
      "description": "Auction status - query the auction phase per scheduling area and auction type"
    },
    {
      "name": "Wallet",
      "description": "Wallet management - start, deposit and withdraw auction funds"
    },
    {
      "name": "Order",
      "description": "Order management - submit, update and cancel auction orders"
    },
    {
      "name": "Trade",
      "description": "Trade records - query settled auction trades"
    },
    {
      "name": "Results",
      "description": "Auction results - query interval results per participant"
    }
  ],
  "paths": {
    "/public-api/v1/auction/order": {
      "put": {
        "tags": [
          "Order"
        ],
        "summary": "Update order",
        "description": "Update an existing auction order",
        "operationId": "updateOrder",
        "parameters": [
          {
            "name": "orderId",
            "in": "query",
            "description": "ID of the order to update",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Updated order data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Order update accepted",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid order data, or the order type differs from the existing order",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Order not found",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "412": {
            "description": "Gate is closed for the selected auction day, insufficient wallet funds, or participant quantity limit exceeded",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Order"
        ],
        "summary": "Submit order",
        "description": "Submit a new auction order for a participant",
        "operationId": "createOrder",
        "requestBody": {
          "description": "Order data including type, scheduling area, resolution and intervals",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Order accepted",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid order data",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "An order of the same type, scheduling area and resolution already exists for this auction day",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "412": {
            "description": "Gate is closed for the selected auction day, insufficient wallet funds, or participant quantity limit exceeded",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Order"
        ],
        "summary": "Cancel order",
        "description": "Cancel an existing auction order",
        "operationId": "deleteOrder",
        "parameters": [
          {
            "name": "orderId",
            "in": "query",
            "description": "ID of the order to cancel",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Order cancelled"
          },
          "403": {
            "description": "Access denied"
          },
          "404": {
            "description": "Order not found"
          },
          "412": {
            "description": "Gate is closed for the selected auction day"
          }
        }
      }
    },
    "/public-api/v1/auction/wallet/withdraw": {
      "post": {
        "tags": [
          "Wallet"
        ],
        "summary": "Withdraw funds",
        "description": "Withdraw funds from the participant's auction wallet",
        "operationId": "withdrawFundsFromAuctionWallet",
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "description": "Amount to withdraw (0.01 – 20 000 000, max 2 decimal places)",
            "required": true,
            "schema": {
              "type": "number",
              "maximum": 20000000,
              "minimum": 0.01
            }
          },
          {
            "name": "participantId",
            "in": "query",
            "description": "Participant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Funds withdrawn"
          },
          "400": {
            "description": "Invalid amount"
          },
          "403": {
            "description": "Access denied"
          },
          "406": {
            "description": "Insufficient auction wallet balance"
          }
        }
      }
    },
    "/public-api/v1/auction/wallet/start": {
      "post": {
        "tags": [
          "Wallet"
        ],
        "summary": "Start auction wallet",
        "description": "Open an auction wallet for a participant",
        "operationId": "startAuctionWallet",
        "parameters": [
          {
            "name": "participantId",
            "in": "query",
            "description": "Participant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Wallet started",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Wallet already exists",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/public-api/v1/auction/wallet/deposit": {
      "post": {
        "tags": [
          "Wallet"
        ],
        "summary": "Deposit funds",
        "description": "Deposit funds into the participant's auction wallet",
        "operationId": "depositFundsToAuctionWallet",
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "description": "Amount to deposit (0.01 – 20 000 000, max 2 decimal places)",
            "required": true,
            "schema": {
              "type": "number",
              "maximum": 20000000,
              "minimum": 0.01
            }
          },
          {
            "name": "participantId",
            "in": "query",
            "description": "Participant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Funds deposited"
          },
          "400": {
            "description": "Invalid amount"
          },
          "403": {
            "description": "Access denied"
          },
          "406": {
            "description": "Insufficient trader balance"
          }
        }
      }
    },
    "/public-api/v1/auction/trade": {
      "post": {
        "tags": [
          "Trade"
        ],
        "summary": "Get trades by filter",
        "description": "Retrieve paginated trade records matching the given search filter",
        "operationId": "getTradesByFilter",
        "parameters": [
          {
            "name": "pageable",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Pageable"
            }
          }
        ],
        "requestBody": {
          "description": "Free search filter criteria",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchFilter"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Trades retrieved",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/PagedModelTradeRecordEntry"
                }
              }
            }
          },
          "400": {
            "description": "Invalid filter data",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/PagedModelTradeRecordEntry"
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/PagedModelTradeRecordEntry"
                }
              }
            }
          }
        }
      }
    },
    "/public-api/v1/auction/wallet/transaction/pending/{participantId}": {
      "get": {
        "tags": [
          "Wallet Transaction"
        ],
        "summary": "Get pending transactions",
        "description": "Retrieve paginated pending wallet transactions for a participant",
        "operationId": "getPendingWalletTransactions",
        "parameters": [
          {
            "name": "participantId",
            "in": "path",
            "description": "Participant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageable",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Pageable"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Transactions retrieved",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/PagedModelPendingWalletTransactionEntry"
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/PagedModelPendingWalletTransactionEntry"
                }
              }
            }
          }
        }
      }
    },
    "/public-api/v1/auction/wallet/transaction/completed/{participantId}": {
      "get": {
        "tags": [
          "Wallet Transaction"
        ],
        "summary": "Get completed transactions",
        "description": "Retrieve paginated completed wallet transactions for a participant",
        "operationId": "getWalletTransactions",
        "parameters": [
          {
            "name": "participantId",
            "in": "path",
            "description": "Participant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageable",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Pageable"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Transactions retrieved",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/PagedModelWalletTransactionEntry"
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/PagedModelWalletTransactionEntry"
                }
              }
            }
          }
        }
      }
    },
    "/public-api/v1/auction/wallet/balance/{participantId}": {
      "get": {
        "tags": [
          "Wallet"
        ],
        "summary": "Get wallet balance",
        "description": "Retrieve the trader wallet balance for a participant",
        "operationId": "getWalletBalance",
        "parameters": [
          {
            "name": "participantId",
            "in": "path",
            "description": "Participant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Balance retrieved",
            "content": {
              "*/*": {
                "schema": {
                  "type": "number"
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "type": "number"
                }
              }
            }
          },
          "404": {
            "description": "Wallet not found",
            "content": {
              "*/*": {
                "schema": {
                  "type": "number"
                }
              }
            }
          }
        }
      }
    },
    "/public-api/v1/auction/wallet/auction/balance/{participantId}": {
      "get": {
        "tags": [
          "Wallet"
        ],
        "summary": "Get auction wallet balance",
        "description": "Retrieve the auction wallet balance for a participant",
        "operationId": "getAuctionBalance",
        "parameters": [
          {
            "name": "participantId",
            "in": "path",
            "description": "Participant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Balance retrieved",
            "content": {
              "*/*": {
                "schema": {
                  "type": "number"
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "type": "number"
                }
              }
            }
          },
          "404": {
            "description": "Wallet not found",
            "content": {
              "*/*": {
                "schema": {
                  "type": "number"
                }
              }
            }
          }
        }
      }
    },
    "/public-api/v1/auction/result/{participantId}": {
      "get": {
        "tags": [
          "Results"
        ],
        "summary": "Get results for participant",
        "description": "Retrieve interval results for a participant filtered by auction date, scheduling area and resolution",
        "operationId": "getResultsForParticipant",
        "parameters": [
          {
            "name": "participantId",
            "in": "path",
            "description": "Participant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "auctionDateTime",
            "in": "query",
            "description": "Auction date and time in ISO 8601 format with timezone",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "schedulingArea",
            "in": "query",
            "description": "Scheduling area",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "NL"
              ]
            }
          },
          {
            "name": "resolution",
            "in": "query",
            "description": "Time resolution (default PT15M)",
            "required": false,
            "schema": {
              "type": "string",
              "default": "PT15M",
              "enum": [
                "PT60M",
                "PT30M",
                "PT15M"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Results retrieved",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IntervalResultDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IntervalResultDto"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IntervalResultDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public-api/v1/auction/result/all/{participantId}": {
      "get": {
        "tags": [
          "Results"
        ],
        "summary": "Get results for all scheduling areas",
        "description": "Retrieve interval results grouped by scheduling area for a participant",
        "operationId": "getResultsForAllSchedulingArea",
        "parameters": [
          {
            "name": "participantId",
            "in": "path",
            "description": "Participant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "auctionDateTime",
            "in": "query",
            "description": "Auction date and time in ISO 8601 format with timezone",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "resolution",
            "in": "query",
            "description": "Time resolution (default PT15M)",
            "required": false,
            "schema": {
              "type": "string",
              "default": "PT15M",
              "enum": [
                "PT60M",
                "PT30M",
                "PT15M"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Results retrieved",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/IntervalResultDto"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/IntervalResultDto"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/IntervalResultDto"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public-api/v1/auction/order/{participantId}": {
      "get": {
        "tags": [
          "Order"
        ],
        "summary": "Get orders by participant",
        "description": "Retrieve orders for a participant filtered by auction date and resolution",
        "operationId": "getOrdersByParticipantAndAuctionDateAndResolution",
        "parameters": [
          {
            "name": "participantId",
            "in": "path",
            "description": "Participant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "auctionDateTime",
            "in": "query",
            "description": "Auction date and time in ISO 8601 format with timezone",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "resolution",
            "in": "query",
            "description": "Time resolution of the auction",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "PT60M",
                "PT30M",
                "PT15M"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Orders retrieved",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrderDTO"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrderDTO"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrderDTO"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public-api/v1/auction/auction-status": {
      "get": {
        "tags": [
          "Auction Status"
        ],
        "summary": "Get auction status for the current day",
        "description": "Retrieve the auction status of the current auction day, listing the auction phase per scheduling area and auction type",
        "operationId": "getCurrentAuctionStatus",
        "responses": {
          "200": {
            "description": "Auction status retrieved",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/AuctionStatusEntry"
                }
              }
            }
          },
          "403": {
            "description": "Access denied",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/AuctionStatusEntry"
                }
              }
            }
          },
          "404": {
            "description": "Auction status not found for the current auction day",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/AuctionStatusEntry"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BlockOrderDTO": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "orderSubType": {
            "type": "string",
            "enum": [
              "NORMAL"
            ]
          },
          "unitPrice": {
            "type": "number",
            "maximum": 4000,
            "minimum": -600
          },
          "minimumAcceptanceRatio": {
            "type": "number",
            "maximum": 1,
            "minimum": 0
          },
          "exclusiveGroup": {
            "type": "string"
          },
          "linkedOrderId": {
            "type": "string"
          },
          "intervals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlockOrderIntervalDTO"
            }
          }
        }
      },
      "BlockOrderIntervalDTO": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string"
          },
          "deliveryStartTime": {
            "type": "string",
            "format": "date-time"
          },
          "deliveryEndTime": {
            "type": "string",
            "format": "date-time"
          },
          "quantity": {
            "type": "number",
            "maximum": 600,
            "minimum": -2000
          }
        }
      },
      "ComplexOrderDTO": {
        "type": "object",
        "properties": {
          "fixedTerm": {
            "type": "number"
          },
          "variableTerm": {
            "type": "number"
          },
          "increaseGradient": {
            "type": "number"
          },
          "decreaseGradient": {
            "type": "number"
          },
          "scheduledStopPeriods": {
            "type": "integer",
            "format": "int32"
          },
          "intervals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IntervalDTO"
            }
          }
        }
      },
      "CurveOrderDTO": {
        "type": "object",
        "properties": {
          "intervals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IntervalDTO"
            }
          }
        }
      },
      "IntervalDTO": {
        "type": "object",
        "properties": {
          "deliveryStartTime": {
            "type": "string",
            "format": "date-time"
          },
          "deliveryEndTime": {
            "type": "string",
            "format": "date-time"
          },
          "minimumAcceptanceQuantity": {
            "type": "number"
          },
          "points": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PointDTO"
            }
          }
        }
      },
      "OrderDTO": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string"
          },
          "participantId": {
            "type": "string"
          },
          "orderType": {
            "type": "string",
            "enum": [
              "CURVE",
              "BLOCK",
              "COMPLEX"
            ]
          },
          "schedulingArea": {
            "type": "string",
            "enum": [
              "NL"
            ]
          },
          "resolution": {
            "type": "string",
            "enum": [
              "PT60M",
              "PT30M",
              "PT15M"
            ]
          },
          "auctionDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "curveOrder": {
            "$ref": "#/components/schemas/CurveOrderDTO"
          },
          "complexOrder": {
            "$ref": "#/components/schemas/ComplexOrderDTO"
          },
          "blockOrders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlockOrderDTO"
            },
            "maxItems": 500,
            "minItems": 0
          }
        },
        "required": [
          "orderType",
          "participantId",
          "resolution",
          "schedulingArea"
        ]
      },
      "PointDTO": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "maximum": 2000,
            "minimum": -2000
          },
          "unitPrice": {
            "type": "number",
            "maximum": 4000,
            "minimum": -600
          }
        }
      },
      "FilterCriteria": {
        "type": "object",
        "properties": {
          "fieldName": {
            "type": "string",
            "enum": [
              "AMOUNT",
              "AUCTION_DATE_TIME",
              "MARKET_CLEARING_PRICE",
              "NET_QUANTITY_ROUNDED",
              "ORDER_ID",
              "ORDER_SIDE",
              "ORDER_TYPE",
              "PARTICIPANT_ID",
              "RESOLUTION",
              "SCHEDULING_AREA",
              "TRADE_AMOUNT",
              "TRADE_ID",
              "TRANSACTION_ID",
              "WALLET_ACTION"
            ]
          },
          "value": {}
        }
      },
      "SearchFilter": {
        "type": "object",
        "properties": {
          "auctionDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "participantId": {
            "type": "string"
          },
          "freeSearch": {
            "type": "string"
          },
          "criteria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterCriteria"
            }
          }
        },
        "required": [
          "participantId"
        ]
      },
      "Pageable": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "size": {
            "type": "integer",
            "format": "int32",
            "minimum": 1
          },
          "sort": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "OrderMatchResult": {
        "type": "object",
        "properties": {
          "buyQuantity": {
            "type": "number"
          },
          "sellQuantity": {
            "type": "number"
          },
          "netQuantity": {
            "type": "number"
          },
          "tradeAmount": {
            "type": "number"
          }
        }
      },
      "PageMetadata": {
        "type": "object",
        "properties": {
          "size": {
            "type": "integer",
            "format": "int64"
          },
          "number": {
            "type": "integer",
            "format": "int64"
          },
          "totalElements": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "PagedModelTradeRecordEntry": {
        "type": "object",
        "properties": {
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TradeRecordEntry"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageMetadata"
          }
        }
      },
      "TradeRecordEntry": {
        "type": "object",
        "properties": {
          "tradeId": {
            "type": "string"
          },
          "rootTradeId": {
            "type": "string"
          },
          "participantId": {
            "type": "string"
          },
          "auctionDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "deliveryStartTime": {
            "type": "string",
            "format": "date-time"
          },
          "deliveryEndTime": {
            "type": "string",
            "format": "date-time"
          },
          "orderTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "CURVE",
                "BLOCK",
                "COMPLEX"
              ]
            },
            "uniqueItems": true
          },
          "resolution": {
            "type": "string",
            "enum": [
              "PT60M",
              "PT30M",
              "PT15M"
            ]
          },
          "schedulingArea": {
            "type": "string",
            "enum": [
              "NL"
            ]
          },
          "orderSide": {
            "type": "string",
            "enum": [
              "BUY",
              "SELL"
            ]
          },
          "curveOrder": {
            "$ref": "#/components/schemas/OrderMatchResult"
          },
          "blockOrder": {
            "$ref": "#/components/schemas/OrderMatchResult"
          },
          "marketClearingPrice": {
            "type": "number"
          },
          "netQuantityUnrounded": {
            "type": "number"
          },
          "netQuantityRounded": {
            "type": "number"
          },
          "tradeAmount": {
            "type": "number"
          }
        }
      },
      "PagedModelPendingWalletTransactionEntry": {
        "type": "object",
        "properties": {
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PendingWalletTransactionEntry"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageMetadata"
          }
        }
      },
      "PendingWalletTransactionEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "participantId": {
            "type": "string"
          },
          "creationDate": {
            "type": "string",
            "format": "date-time"
          },
          "rootOrderId": {
            "type": "string"
          },
          "walletAction": {
            "type": "string",
            "enum": [
              "DEPOSIT",
              "WITHDRAW",
              "BUY",
              "SELL",
              "REFUND",
              "RESERVE"
            ]
          },
          "amount": {
            "type": "number"
          }
        }
      },
      "PagedModelWalletTransactionEntry": {
        "type": "object",
        "properties": {
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WalletTransactionEntry"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageMetadata"
          }
        }
      },
      "WalletTransactionEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "participantId": {
            "type": "string"
          },
          "creationDate": {
            "type": "string",
            "format": "date-time"
          },
          "rootCurveOrderId": {
            "type": "string"
          },
          "rootBlockOrderId": {
            "type": "string"
          },
          "walletAction": {
            "type": "string",
            "enum": [
              "DEPOSIT",
              "WITHDRAW",
              "BUY",
              "SELL",
              "REFUND",
              "RESERVE"
            ]
          },
          "amount": {
            "type": "number"
          },
          "tradeIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "uniqueItems": true
          }
        }
      },
      "IntervalResultDto": {
        "type": "object",
        "properties": {
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time"
          },
          "marketClearingPrice": {
            "type": "number"
          },
          "totalBuyQuantityTraded": {
            "type": "number"
          },
          "totalSellQuantityTraded": {
            "type": "number"
          },
          "netPosition": {
            "type": "number"
          }
        }
      },
      "AuctionStatus": {
        "type": "object",
        "properties": {
          "schedulingArea": {
            "type": "string",
            "enum": [
              "NL"
            ]
          },
          "auctionType": {
            "type": "string",
            "enum": [
              "DA"
            ]
          },
          "auctionPhase": {
            "type": "string",
            "enum": [
              "OPEN",
              "GATE_CLOSED",
              "PARTIALLY_DECOUPLED",
              "FULLY_DECOUPLED",
              "RESULT_PROCESSED",
              "CLOSED"
            ]
          },
          "gateClosureTime": {
            "type": "string",
            "format": "date-time"
          },
          "resultPublicationTime": {
            "type": "string",
            "format": "date-time"
          },
          "comment": {
            "type": "string"
          }
        }
      },
      "AuctionStatusEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "auctionDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "auctionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuctionStatus"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "api-key": {
        "type": "apiKey",
        "name": "api_key",
        "in": "header"
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Day Ahead Auction",
      "tags": [
        "Order",
        "Trade",
        "Auction Status",
        "Results",
        "Wallet",
        "Wallet Transaction"
      ]
    }
  ]
}