# RESIDUE_PRICE_BID-NULL-1

> CSV Report SRBID Public Bid report.
> Settlement Residue Auction - Bids

!!! danger "Warning"

    This table is missing from AEMO's [main schema documentation](https://nemweb.com.au/Reports/CURRENT/MMSDataModelReport/Electricity/ElectricityDataModelReport.htm), but is listed on their [other, less comprehensive schema documentation page](https://web.nemweb.com.au/#sra-bids). The name really does end with `-NULL-1`. The column meanings are undocumented. The information here is my best guess from looking at the data. This table may also be known as 'SRA bids'.

!!! danger "Warning"

    This is a different table to [`RESIDUE_PRICE_BID`](./RESIDUE_PRICE_BID.md). RESIDUE_PRICE_BID-NULL-1 is per region. [`RESIDUE_PRICE_BID`](./RESIDUE_PRICE_BID.md) is per participant.

## Column Schema

### CONTRACTID

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

This column is mandatory, and a primary key.

Examples:

- `C2026Q4T12`
- `C2027Q1T11`
- `C2027Q2T10`
- `C2027Q3T09`
- `C2027Q4T08`
- `C2028Q1T07`
- `C2028Q2T06`
- `C2028Q3T05`
- `C2028Q4T04`
- `C2029Q1T03`

### INTERCONNECTORID

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`

### REGIONID

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` 

- `SNOWY1` (in very old files)

This column is mandatory, and a primary key.

### AUCTIONID

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

This column is mandatory (but not a primary key).

Example: `A202609`

### BIDPRICE

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

This column is mandatory (but not a primary key).

Examples:
`1.08`, `10`, `35863.2658`, `40246`

### LINKEDBIDFLAG

!!! danger "Warning"
    The SQL type is documented as just `NUMBER`, not `NUMBER(x)` or `NUMBER(x,y)`. Technically this means it is a decimal value (as opposed to a float). Given the name, it sounds like it may be a binary value, or at least an integer. However this value is actually omitted in all files published so far. There is no documented description, so the possible future values and meaning are anyone's guess.

SQL Type: `NUMBER`
Polars Type: `None`

This column is not mandatory.

### UNITS

SQL Type: `NUMBER(5)`
Polars Type: `pl.UInt32`

This column is mandatory (but not a primary key).

Examples:
`1`, `363`

## 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

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",
    ).cast(
        {
            "CONTRACTID": pl.Categorical,
            "INTERCONNECTORID": pl.Categorical,
            "REGIONID": pl.Enum(["QLD1", "VIC1", "TAS1", "NSW1", "SA1", "SNOWY1"]),
            "AUCTIONID": pl.Categorical,
            "BIDPRICE": pl.Float64,
            "LINKEDBIDFLAG": None,
            "UNITS": int,  # or pl.UInt32
        }
    )
    # Deduplicate
    # We want one row per ['CONTRACTID', 'INTERCONNECTORID', 'REGIONID']
    .unique(subset=["CONTRACTID", "INTERCONNECTORID", "REGIONID"], keep="any")
)

```

### Nemosis

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

## Example File

From [PUBLIC_SRBID_A202609_20260915141606.CSV](https://nemweb.com.au/Reports/CURRENT/SRA_Bids/PUBLIC_SRBID_A202609_20260915141606.CSV)

=== "Raw Text with Metadata"
    ```csv
    C,NEMP.WORLD,SRBID,AEMO,PUBLIC,2026/09/15,14:16:06,0000000538012144,,0000000538012144
    I,RESIDUE_PRICE_BID,,1,CONTRACTID,INTERCONNECTORID,REGIONID,UNITS,BIDPRICE,LINKEDBIDFLAG,AUCTIONID
    D,RESIDUE_PRICE_BID,,1,C2028Q1T07,NSW1-QLD1,NSW1,1,15026,,A202609
    D,RESIDUE_PRICE_BID,,1,C2028Q1T07,NSW1-QLD1,NSW1,1,14500.09,,A202609
    D,RESIDUE_PRICE_BID,,1,C2028Q1T07,NSW1-QLD1,NSW1,1,13974.18,,A202609
    D,RESIDUE_PRICE_BID,,1,C2028Q1T07,NSW1-QLD1,NSW1,1,13448.27,,A202609
    D,RESIDUE_PRICE_BID,,1,C2027Q1T11,NSW1-QLD1,NSW1,2,13255,,A202609
    D,RESIDUE_PRICE_BID,,1,C2029Q1T03,NSW1-QLD1,NSW1,1,13047,,A202609
    D,RESIDUE_PRICE_BID,,1,C2027Q1T11,NSW1-QLD1,NSW1,2,12923.62,,A202609
    D,RESIDUE_PRICE_BID,,1,C2028Q1T07,NSW1-QLD1,NSW1,1,12922.36,,A202609
    D,RESIDUE_PRICE_BID,,1,C2027Q1T11,NSW1-QLD1,NSW1,2,12592.25,,A202609
    D,RESIDUE_PRICE_BID,,1,C2029Q1T03,NSW1-QLD1,NSW1,1,12590.36,,A202609
    D,RESIDUE_PRICE_BID,,1,C2028Q1T07,NSW1-QLD1,NSW1,1,12396.45,,A202609
    ...
    C,"END OF REPORT",13735
    ```

## Availability

This table is publicly available in an unusual location.

<https://nemweb.com.au/Reports/CURRENT/SRA_Bids/>

    
All files in that folder are for this table.
    

## Data Size

    
Across all time, the files add up to 394 KB (as uncompressed CSV).
    

## Deduplication and PDR Loader Configuration

The primary keys are:

- [`CONTRACTID`](#contractid)

- [`INTERCONNECTORID`](#interconnectorid)

- [`REGIONID`](#regionid)

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

| Report Name | Report Subtype | Version |
|---------------|-------------------|-----------|
| RESIDUE_PRICE_BID | None  | 1 |

This means that the CSV files start with metadata columns:

```csv
I,RESIDUE_PRICE_BID,,1,...
D,RESIDUE_PRICE_BID,,1,...
```

## Links

[This page as JSON](../json/tables/RESIDUE_PRICE_BID-NULL-1/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/RESIDUE_PRICE_BID-NULL-1/json-schema.json) specification for this table.

[Official AEMO schema documentation](https://web.nemweb.com.au/#sra-bids)

## Other Information

This table is not part of a package.
