Send a Linear Order to the Market
Trading
Authenticate, save a linear order for a given shipper and portfolio, then submit it to the exchange.
-
POST
/auth
Authenticate and obtain a bearer token. Use it in the Authorization header for all subsequent requests.
-
POST
/{contractGuid}/auction/shippers/{shipperId}/portfolios/{portfolioIdentifier}/linear
Save the linear order in the Working Version for the given shipper, delivery date and portfolio.
-
POST
/{contractGuid}/auction/shippers/{shipperId}/portfolios/{portfolioIdentifier}/linear/send
Submit the current Working Version of the linear order to the exchange. The portfolio identifier must be an Exchange Portfolio identifier (EXT-...).
Block Orders — Save, Send and Cancel
Trading
Create block orders for a portfolio, send them to the exchange, review the overview and market results, then delete or cancel.
-
POST
/auth
Authenticate and obtain a bearer token.
-
POST
/{contractGuid}/auction/shippers/{shipperId}/portfolios/{portfolioIdentifier}/blocks
Save block orders in the Working Version. The body contains the delivery date, block name, price, minimum acceptance ratio and period list with start/end times and volumes.
-
GET
/{contractGuid}/auction/shippers/{shipperId}/portfolios/{portfolioIdentifier}/blocks?deliveryDate=…&status=working
Retrieve the saved working block orders and verify they match what was posted.
-
GET
/{contractGuid}/auction/shippers/{shipperId}/portfolios/{portfolioIdentifier}/blocks/overview?deliveryDate=…
Get the overview showing both Working and On-Screen (sent) block orders side by side.
-
POST
/{contractGuid}/auction/shippers/{shipperId}/portfolios/{externalPortfolioIdentifier}/blocks/send?deliveryDate=…
Submit the working block orders to the exchange. Use the external portfolio identifier (EXT-…).
-
GET
/{contractGuid}/auction/shippers/{shipperId}/portfolios/{portfolioIdentifier}/blocks/market-result?deliveryDate=…
Retrieve the market results to see which blocks were accepted or rejected.
-
DELETE
/{contractGuid}/auction/shippers/{shipperId}/portfolios/{portfolioIdentifier}/blocks?deliveryDate=…
Delete all working block orders for the given delivery date.
-
DELETE
/{contractGuid}/auction/shippers/{shipperId}/portfolios/{externalPortfolioIdentifier}/blocks/cancel?deliveryDate=…
Cancel previously sent orders on the exchange. Use the external portfolio identifier.
Deal — Create, Read, Update and Delete
Deals
Full lifecycle of a deal: create with delivery window and power/price, retrieve by ID, update fields, then delete and confirm removal.
-
POST
/auth
Authenticate and obtain a bearer token.
-
POST
/{contractGuid}/deals
Create a new deal. The body includes externalId, deliveryStart/End, fixedPower, fixedPrice, direction, grid, gridPoint, entity, counterpart and material.
-
GET
/{contractGuid}/deals/{dealId}
Retrieve the deal by its internal ID. Verify externalId, fixedPower and fixedPrice match.
-
PUT
/{contractGuid}/deals/{dealId}
Update the deal — for example change fixedPower or add a comment.
-
GET
/{contractGuid}/deals/{dealId}
Retrieve the deal again to confirm the updated fields.
-
DELETE
/{contractGuid}/deals/{dealId}
Delete the deal. Returns 200 or 204.
-
GET
/{contractGuid}/deals/{dealId}
Confirm deletion — the API returns 404 Not Found.
Deals — Batch Create and Lookup
Deals
Create multiple deals in a single batch call, then retrieve them by internal IDs, external IDs, or with date filters.
-
POST
/auth
Authenticate and obtain a bearer token.
-
POST
/{contractGuid}/deals/batch
Create several deals at once. The body is an array of Deal objects.
-
GET
/{contractGuid}/deals/list?idList=101&idList=102
Retrieve deals by their internal IDs.
-
GET
/{contractGuid}/deals/list/externalId?idList=EXT_1&idList=EXT_2
Retrieve deals by their external IDs.
-
GET
/{contractGuid}/deals?deliversAfter=…&deliversBefore=…&count=100
List deals filtered by delivery date range.
Deals — Archive Workflow
Deals
Create a deal, delete it, then verify it appears in the archived deals list with an archive date.
-
POST
/auth
Authenticate and obtain a bearer token.
-
POST
/{contractGuid}/deals
Create a deal with a known externalId.
-
DELETE
/{contractGuid}/deals/{dealId}
Delete the deal so it gets archived.
-
GET
/{contractGuid}/deals/archive?count=100
Retrieve archived deals. The deleted deal appears with its archiveDate populated.
Decimal Time Series — Create, Update and Delete
Timeseries
Full lifecycle of a decimal time series: create a curve with segments, read it back, update the name and segment values, then delete.
-
POST
/auth
Authenticate and obtain a bearer token.
-
POST
/{contractGuid}/timeseries/decimal
Create a decimal time series. The body includes name, type (DecimalCurve), unit and a segments array with startDate, endDate and value.
-
GET
/{contractGuid}/timeseries/decimal/{timeSeriesId}
Retrieve the created time series by ID. Verify name, unit and id.
-
PUT
/{contractGuid}/timeseries/decimal/{timeSeriesId}
Update the time series — change the name or segment values.
-
PUT
/{contractGuid}/timeseries/decimal/{timeSeriesId}/segments
Replace segment values directly without updating other curve properties.
-
GET
/{contractGuid}/timeseries/decimal/{timeSeriesId}
Retrieve the time series again to confirm the updates.
-
DELETE
/{contractGuid}/timeseries/decimal/{timeSeriesId}
Delete the time series. Returns 200 or 204.
-
GET
/{contractGuid}/timeseries/decimal/{timeSeriesId}
Confirm deletion — the API returns 404 Not Found.
Balancing — Check Position Impact of a Deal
Balancing
Get the initial position for a grid, create a deal, then verify the position values increased. Optionally check different units (MWh vs kWh).
-
POST
/auth
Authenticate and obtain a bearer token.
-
GET
/{contractGuid}/positions?gridId=217&start=…&end=…&granularity=Hour&unitId=14
Get the initial position for the grid. Returns a list of position items with start, end and value.
Balancing — Deal Linked to a Time Series
Balancing
Create a time series, link it to a deal via the power curve, then update the time series segments and verify the position reflects the change.
-
POST
/auth
Authenticate and obtain a bearer token.
-
POST
/{contractGuid}/timeseries/decimal
Create a decimal time series with an initial segment value (e.g. 10 MW).
-
POST
/{contractGuid}/deals
Create a deal and set powerCurve.id to the time series ID to link them.
-
PUT
/{contractGuid}/timeseries/decimal/{timeSeriesId}/segments
Update the time series segment value (e.g. from 10 to 20).
-
GET
/{contractGuid}/positions?gridId=217&start=…&end=…&granularity=Hour&unitId=14
Get the position — values reflect the time series segment value.