Retrieve auction results
Once the results of an auction have been published, you will be able to query those results for your baskets. For more information on the timing of the publication, please refer to the Auction session lifecycle section.
You can retrieve the results using the serviceWindowUnitResults query. It will return a record for each unit, service and service window for which you have at least one parent or child order in your baskets. Those records contain among other thing:
- the price of the service on the service window
- the total cleared volume for the unit on the service and service window
- the detail per parent and child orders
For example, if you have one basket with one parent order with quantities on DCL and DCH and one child order defined on DCL and DML, you will get 3 ServiceWindowUnitResult . If you have a second similar basket on the same service window, you will still get only 3 records. If you have a third similar basket on a different service window, you will get 6 records this time.
Here is an example of result you could have with example described above with one basket.
If you run this query with an auction session still open, you will get a Trade Error . If you run it on a completed auction on which you don't have any basket, it will just return an empty list.
Creating co-optimised baskets