# AUCTION_IC_ALLOCATIONS

> AUCTION_IC_ALLOCATIONS supports the Settlement Residue Auction by providing the basis for setting up contracts for individual tranches. AUCTION_IC_ALLOCATIONS shows the default definitions for the total number of units and proportion applicable to each directional interconnector for a specified auction quarter.

> AUCTION_IC_ALLOCATIONS is public data, and is available to all
> participants.
> 
> Source
> 
> Updates are usually quarterly as auctions are held from Settlement
> Residue Auction team's SRIS interface.
> 
> Volume
> 
> AUCTION_IC_ALLOCATIONS contains a maximum of 100 records per year.

## Column Schema

### CONTRACTYEAR

> SRA Contracted Year

SQL Type: `NUMBER(4,0)`
Polars Type: `pl.UInt16`

This column is mandatory, and a primary key.

Example: `2032`

### FROMREGIONID

> Nominated source region for Interconnector

For more information, see the [dedicated documentation page](../../guide/querying.md#region-id).

The SQL type is `VARCHAR2(10)`.
This is actually a factor/enum, with values:

- `QLD1` 

- `VIC1` 

- `TAS1` 

- `NSW1` 

- `SA1` 

This column is mandatory, and a primary key.

### INTERCONNECTORID

> Contracted Interconnector Identifier

SQL Type: `VARCHAR2(10)`
Polars Type: `pl.Categorical`

This column is mandatory, and a primary key.

Examples:

- `NSW1-QLD1`
- `NSW1-SA1`
- `T-V-MNSP1`
- `V-SA`
- `VIC1-NSW1`

### QUARTER

> SRA Contracted Quarter

SQL Type: `NUMBER(1,0)`
Polars Type: `pl.Int8`

This column is mandatory, and a primary key.

Example: `4`

### VERSIONNO

> Version of data for other key data - a higher version for same key data takes precedence

SQL Type: `NUMBER(3,0)`
Polars Type: `pl.UInt16`

This column is mandatory, and a primary key.

Example: `1`

### AUCTIONFEE

> Daily auction fee

SQL Type: `NUMBER(17,5)`
Polars Type: `pl.Float64`

This column is not mandatory.

Example: `0`

### AUCTIONFEE_SALES

> Fees for Cancelled Units.

SQL Type: `NUMBER(18,8)`
Polars Type: `pl.Float64`

This column is not mandatory.

### CHANGEDATE

> Authorisation date

SQL Type: `DATE`
Polars Type: `pl.Date()`

This column is not mandatory.

Example: `2026/10/01 00:00:00`

Note that AEMO represents dates as datetimes with a midnight time component.

### CHANGEDBY

> Name of person authorising this data set

SQL Type: `VARCHAR2(15)`
Polars Type: `str`

This column is not mandatory.

Example: `SYSTEM`

### LASTCHANGED

> Last date and time record changed

For more information, see the [dedicated documentation page](../../guide/querying.md#deduplication).

SQL Type: `DATE`
Polars Type: `pl.Datetime()`

This column is not mandatory.

Example: `2026/10/01 00:00:00`

### MAXIMUMUNITS

> Number of units on the interconnector

SQL Type: `NUMBER(5,0)`
Polars Type: `pl.Int32`

This column is not mandatory.

Examples:
`500`, `1500`

### PROPORTION

> Percentage of the total residue for each Unit

SQL Type: `NUMBER(8,5)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`0.06666`, `0.2`

## New Data Timing

> Usually quarterly after each settlement residue auction

## Code Examples

### Polars

Explicitly listing every column, casting to enums, categoricals etc is not essential, but may speed up parsing.
Swapping `int` for `pl.UInt16`, `pl.Int32` would also speed up parsing. However some of the datatypes are inferred, so they may be wrong.

This code deduplicates for you.
Deduplication is normally only required across multiple months.

This code assumes that all columns are present, which may not be true for older files.

```python
import polars as pl
import polars.selectors as cs

# e.g. "2029/03/15 00:05:00"
dt_s_fmt = "%Y/%m/%d %H:%M:%S"

# Dates are represented as datetimes at midnight

d_fmt = "%Y/%m/%d 00:00:00"

csv_paths = ["SOMEFILE.CSV", "OTHERFILE.CSV"]

lf = (
    pl.concat(
        [
            pl.scan_csv(
                csv_path,  # must be unzipped beforehand
                skip_rows=1,  # skip the header
                infer_schema=False,  # much faster
            )
            .filter(cs.by_index(0) == "D")  # drop the footer
            .select(~cs.by_index(range(4)))  # drop metadata columns
            for csv_path in csv_paths
        ],
        how="diagonal_relaxed",
    )
    .with_columns(
        pl.col("LASTCHANGED").str.strptime(pl.Datetime, dt_s_fmt),
        pl.col("CHANGEDATE").str.strptime(pl.Date, d_fmt),
    )
    .cast(
        {
            "CONTRACTYEAR": int,  # or pl.UInt16
            "FROMREGIONID": pl.Enum(["QLD1", "VIC1", "TAS1", "NSW1", "SA1"]),
            "INTERCONNECTORID": pl.Categorical,
            "QUARTER": int,  # or pl.Int8
            "VERSIONNO": int,  # or pl.UInt16
            "AUCTIONFEE": pl.Float64,
            "AUCTIONFEE_SALES": pl.Float64,
            "CHANGEDATE": pl.Date(),
            "CHANGEDBY": str,
            "MAXIMUMUNITS": int,  # or pl.Int32
            "PROPORTION": pl.Float64,
        }
    )
    # Deduplicate
    # We want one row per ['CONTRACTYEAR', 'FROMREGIONID', 'INTERCONNECTORID', 'QUARTER', 'VERSIONNO']
    # Tie-breaker: greatest value of ['LASTCHANGED']
    .sort(["LASTCHANGED"], descending=False)
    .unique(
        subset=[
            "CONTRACTYEAR",
            "FROMREGIONID",
            "INTERCONNECTORID",
            "QUARTER",
            "VERSIONNO",
        ],
        keep="last",
    )
)

```

### Nemosis

This table is not yet available in [Nemosis](https://github.com/UNSW-CEEM/NEMOSIS/#static_table).

## Example File

From [PUBLIC_ARCHIVE_AUCTION_IC_ALLOCATIONS_FILE01_202609010000.zip](https://www.nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM/2026/MMSDM_2026_09/MMSDM_Historical_Data_SQLLoader/DATA/PUBLIC_ARCHIVE%23AUCTION_IC_ALLOCATIONS%23FILE01%23202609010000.zip)

=== "Raw Text with Metadata"
    ```csv
    C,SETP.WORLD,DVD_AUCTION_IC_ALLOCATIONS,AEMO,PUBLIC,2026/10/09,15:24:37,001791523477979,MONTHLY_ARCHIVE,001791523477979
    I,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,CONTRACTYEAR,QUARTER,VERSIONNO,INTERCONNECTORID,FROMREGIONID,MAXIMUMUNITS,PROPORTION,AUCTIONFEE,CHANGEDATE,CHANGEDBY,LASTCHANGED,AUCTIONFEE_SALES
    D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,2032,4,1,VIC1-NSW1,VIC1,1500,0.06666,0,"2026/10/01 00:00:00",SYSTEM,"2026/10/01 00:00:00",
    D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,2032,4,1,VIC1-NSW1,NSW1,1300,0.07692,0,"2026/10/01 00:00:00",SYSTEM,"2026/10/01 00:00:00",
    D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,2032,4,1,T-V-MNSP1,TAS1,500,0.2,0,"2026/10/01 00:00:00",SYSTEM,"2026/10/01 00:00:00",
    D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,2032,4,1,T-V-MNSP1,VIC1,500,0.2,0,"2026/10/01 00:00:00",SYSTEM,"2026/10/01 00:00:00",
    D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,2032,4,1,V-SA,SA1,770,0.12987,0,"2026/10/01 00:00:00",SYSTEM,"2026/10/01 00:00:00",
    D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,2032,4,1,NSW1-SA1,NSW1,800,0.125,0,"2026/10/01 00:00:00",SYSTEM,"2026/10/01 00:00:00",
    D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,2032,4,1,NSW1-SA1,SA1,800,0.125,0,"2026/10/01 00:00:00",SYSTEM,"2026/10/01 00:00:00",
    D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,2032,4,1,V-SA,VIC1,880,0.11363,0,"2026/10/01 00:00:00",SYSTEM,"2026/10/01 00:00:00",
    D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,2032,4,1,NSW1-QLD1,NSW1,750,0.13333,0,"2026/10/01 00:00:00",SYSTEM,"2026/10/01 00:00:00",
    D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,2032,4,1,NSW1-QLD1,QLD1,1300,0.07692,0,"2026/10/01 00:00:00",SYSTEM,"2026/10/01 00:00:00",
    C,"END OF REPORT",13
    ```

## Availability

This table is in the public monthly [MMSDM archive](https://www.nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM/).

I have collated the list of all those files for this table into one place, in [this CSV metadata file](../../manifests/per_table/csv/AUCTION_IC_ALLOCATIONS.csv). (Columns `year`, `month`, `url`, `compressed_size` in bytes).

    

The earliest available data is month 1 of 2015.
The most recent available data is month 9 of 2026.

!!! warning Warning
    There are some months with no files.

## Data Size

    

Each year of data is approximately
7 KB when zipped,
71 KB as unzipped CSV.

        

    

## Deduplication and PDR Loader Configuration

The primary keys are:

- [`CONTRACTYEAR`](#contractyear)

- [`FROMREGIONID`](#fromregionid)

- [`INTERCONNECTORID`](#interconnectorid)

- [`QUARTER`](#quarter)

- [`VERSIONNO`](#versionno)

The transaction type is ["INSERT-UPDATE"](https://di-help.docs.public.aemo.com.au/Content/pdrLoader/How_it_works.htm?TocPath=pdrLoader%7CAbout+pdrLoader%7C_____5#UPDATEINSERT), which means that you will likely see duplicate data with different values.

You should deduplicate by sorting based on `LASTCHANGED`, within each group of primary keys.

[PDR Loader configuration](https://nemweb.com.au/Reports/Current/MMSDataModelReport/PDRCONFIG/PROD_PUBLIC_PDR_CONFIG_FULL.zip) is:

| Report Name | Report Subtype | Version |
|---------------|-------------------|-----------|
| IRAUCTION_CONFIG | AUCTION_IC_ALLOCATIONS  | 1 |
| IRAUCTION_CONFIG | AUCTION_IC_ALLOCATIONS  | 2 |

This means that the CSV files start with metadata columns:

```csv
I,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,1,...
D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,1,...
```

or

```csv
I,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,...
D,IRAUCTION_CONFIG,AUCTION_IC_ALLOCATIONS,2,...
```

`ROW_FILTER_TYPE` is LASTCHANGED

## Indexes

- [`LASTCHANGED`](#lastchanged)

## Links

[This page as JSON](../json/tables/AUCTION_IC_ALLOCATIONS/bespoke.json) (schema documented [here](https://gitlab.com/MatthewDavis/mms-schema/-/blob/master/schema.py?ref_type=heads), but may change)

Download a [JSON Schema](../json/tables/AUCTION_IC_ALLOCATIONS/json-schema.json) specification for this table.

[Official AEMO schema documentation](https://nemweb.com.au/Reports/Current/MMSDataModelReport/Electricity/ElectricityDataModelReport_files/Elec31.htm#19)

## Other Information

Package: [IRAUCTION](../packages/IRAUCTION.md)
