# BIDPEROFFER_D

> BIDPEROFFER_D shows the public summary of the energy and FCAS offers applicable in the Dispatch for the
> intervals identified. BIDPEROFFER_D is the child to [`BIDDAYOFFER_D`](./BIDDAYOFFER_D.md).

> BIDPEROFFER_D is public data, so is available to all participants.
> 
> Source
> 
> BIDPEROFFER_D updates daily shortly after 4am.
> 
> See also [`BIDPEROFFER`](./BIDPEROFFER.md).

## Column Schema

### BIDTYPE

> Bid Type Identifier

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

- `ENERGY`

- `LOWERREG`

- `LOWER60SEC`

- `RAISE5MIN`

- `LOWER5MIN`

- `LOWER6SEC`

- `RAISE60SEC`

- `RAISE6SEC`

- `RAISEREG`

- `RAISE1SEC`

- `LOWER1SEC`

This column is mandatory, and a primary key.

### DIRECTION

> The power flow direction to which this offer applies: GEN, LOAD or BIDIRECTIONAL

!!! danger "Warning"
    Despite AEMO's documentation saying that this column is mandatory, it is missing from older files. It was added to the schema in [version 5.3](https://tech-specs.docs.public.aemo.com.au/Content/TSP_EMMSDM53_April2024/Participant_Impact.htm#NEXTDAYbids).

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

This column is mandatory, and a primary key.

Examples:

- `GEN`
- `LOAD`

### DUID

> Dispatchable Unit identifier

!!! danger "Warning"
    This column may contain funny characters such as / (slash) or # (hash). This may break hive-style partitioning.

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

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

This column is mandatory, and a primary key.

Examples:

- `ADPBA1`
- `ADPPV1`
- `AGLHAL`
- `W/HOE#2`

### INTERVAL_DATETIME

> Date and Time of the dispatch interval to which the offer applied

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

This column is mandatory, and a primary key.

Example: `2026/09/01 04:05:00`

### SETTLEMENTDATE

> Market date for which the bid applied

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

This column is mandatory, and a primary key.

Example: `2026/09/01 00:00:00`

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

### BANDAVAIL1

> Availability at price band 1

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.Int128`

This column is not mandatory.

Examples:
`0`, `1`, `6`

### BANDAVAIL2

> Availability at price band 2

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.Int128`

This column is not mandatory.

Example: `0`

### BANDAVAIL3

> Availability at price band 3

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.Int128`

This column is not mandatory.

Examples:
`0`, `2`, `6`

### BANDAVAIL4

> Availability at price band 4

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.Int128`

This column is not mandatory.

Examples:
`0`, `2`, `6`

### BANDAVAIL5

> Availability at price band 5

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.Int128`

This column is not mandatory.

Examples:
`0`, `1`, `6`

### BANDAVAIL6

> Availability at price band 6

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.Int128`

This column is not mandatory.

Examples:
`0`, `2`, `19`

### BANDAVAIL7

> Availability at price band 7

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.Int128`

This column is not mandatory.

Examples:
`0`, `2`, `6`

### BANDAVAIL8

> Availability at price band 8

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.Int128`

This column is not mandatory.

Example: `0`

### BANDAVAIL9

> Availability at price band 9

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.Int128`

This column is not mandatory.

Example: `0`

### BANDAVAIL10

> Availability at price band 10

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.Int128`

This column is not mandatory.

Examples:
`0`, `4`, `255`

### BIDSETTLEMENTDATE

> Market date for which the bid was submitted

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

This column is not mandatory.

Example: `2026/09/01 00:00:00`

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

### ENABLEMENTMAX

> Maximum Energy Output (MW) at which this ancillary service can be supplied (AS Only)

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

This column is not mandatory.

### ENABLEMENTMIN

> Minimum Energy Output (MW) at which this ancillary service becomes available (AS Only)

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

This column is not mandatory.

### ENERGYLIMIT

> The Energy limit applying at the end of this dispatch interval in MWh. For GEN this is a lower energy limit. For LOAD this is an upper energy limit

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

This column is not mandatory.

### FIXEDLOAD

> Fixed unit output MW (Energy Bids Only). A value of zero means no fixed load so the unit is dispatched according to bid and market (rather than zero fixed load)

SQL Type: `NUMBER(12,6)`
Polars Type: `pl.Float64`

This column is not mandatory.

Example: `0`

### HIGHBREAKPOINT

> Maximum Energy Output (MW) at which the unit can provide the full availability (MAXAVAIL) for this ancillary service (AS Only)

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

This column is not mandatory.

### 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/08/15 10:58:18`

### LOWBREAKPOINT

> Minimum Energy Output (MW) at which the unit can provide the full availability (MAXAVAIL) for this ancillary service (AS Only)

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

This column is not mandatory.

### MAXAVAIL

> Maximum availability for this BidType in this period

SQL Type: `NUMBER(12,6)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`0`, `1`, `160`

### MR_CAPACITY

> Mandatory Restriction Offer amount

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

This column is not mandatory.

### OFFERDATE

> Offer date and time

!!! danger "Warning"
    Despite what the name suggests, this is a datetime, not a date.

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

This column is not mandatory.

Example: `2026/08/15 10:58:18`

### PASAAVAILABILITY

> Allows for future use for energy bids, being the physical plant capability including any capability potentially available within 24 hours

SQL Type: `NUMBER(12,0)`
Polars Type: `pl.Int64`

This column is not mandatory.

Examples:
`6`, `192`

### PERIODID

> The trading interval period identifier (1-288)

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.Int128`

This column is not mandatory.

Examples:
`1`, `288`

### RECALL_PERIOD

> The advance notice (in hours) that a Scheduled Resource requires to achieve the PASA Availability MW for this trading interval.

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

This column is not mandatory.

Examples:
`1`, `24000`

### ROCDOWN

> MW/Min for lower (Energy Bids Only)

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

This column is not mandatory.

Examples:
`2`, `12`

### ROCUP

> MW/min for raise (Energy Bids Only)

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

This column is not mandatory.

Examples:
`2`, `12`

### VERSIONNO

> Version number of offer

SQL Type: `NUMBER(22,0)`
Polars Type: `pl.UInt128`

This column is not mandatory.

Example: `1`

## New Data Timing

> Data is published daily

## Code Examples

### Polars

This table is so large that you should explicitly enumerate and cast every column, which will speed things up and prevents some errors.
Although some of the datatypes are inferred, so they may be wrong. In particular, `UInt16` vs `UInt8` vs `Int16` etc. If you get errors, you can swap these for just `int`.

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("INTERVAL_DATETIME", "LASTCHANGED", "OFFERDATE").str.strptime(
            pl.Datetime, dt_s_fmt
        ),
        pl.col("SETTLEMENTDATE", "BIDSETTLEMENTDATE").str.strptime(pl.Date, d_fmt),
    )
    .cast(
        {
            "BIDTYPE": pl.Enum(
                [
                    "ENERGY",
                    "LOWERREG",
                    "LOWER60SEC",
                    "RAISE5MIN",
                    "LOWER5MIN",
                    "LOWER6SEC",
                    "RAISE60SEC",
                    "RAISE6SEC",
                    "RAISEREG",
                    "RAISE1SEC",
                    "LOWER1SEC",
                ]
            ),
            "DIRECTION": str,
            "DUID": pl.Categorical,
            "SETTLEMENTDATE": pl.Date(),
            "BANDAVAIL1": pl.Int128,
            "BANDAVAIL2": pl.Int128,
            "BANDAVAIL3": pl.Int128,
            "BANDAVAIL4": pl.Int128,
            "BANDAVAIL5": pl.Int128,
            "BANDAVAIL6": pl.Int128,
            "BANDAVAIL7": pl.Int128,
            "BANDAVAIL8": pl.Int128,
            "BANDAVAIL9": pl.Int128,
            "BANDAVAIL10": pl.Int128,
            "BIDSETTLEMENTDATE": pl.Date(),
            "ENABLEMENTMAX": pl.Int32,
            "ENABLEMENTMIN": pl.Int32,
            "ENERGYLIMIT": pl.Float64,
            "FIXEDLOAD": pl.Float64,
            "HIGHBREAKPOINT": pl.Int32,
            "LOWBREAKPOINT": pl.Int32,
            "MAXAVAIL": pl.Float64,
            "MR_CAPACITY": pl.Int32,
            "PASAAVAILABILITY": pl.Int64,
            "PERIODID": pl.Int128,
            "RECALL_PERIOD": pl.Float64,
            "ROCDOWN": pl.Int32,
            "ROCUP": pl.Int32,
            "VERSIONNO": pl.UInt128,
        }
    )
    # Deduplicate
    # These files are so large that this step may cause your laptop to run out of memory.
    # We want one row per ['BIDTYPE', 'DIRECTION', 'DUID', 'INTERVAL_DATETIME', 'SETTLEMENTDATE']
    # Tie-breaker: greatest value of ['LASTCHANGED']
    .sort(["LASTCHANGED"], descending=False)
    .unique(
        subset=["BIDTYPE", "DIRECTION", "DUID", "INTERVAL_DATETIME", "SETTLEMENTDATE"],
        keep="last",
    )
)

```

### Nemosis

```py
from nemosis import dynamic_data_compiler

df = dynamic_data_compiler(
    '2024/01/01 00:00:00',
    '2024/01/31 00:00:00',
    "BIDPEROFFER_D",
    "data/"
)
```

Nemosis only includes [a subset of columns](https://github.com/UNSW-CEEM/NEMOSIS/#accessing-additional-table-columns) by default, as an optimisation. (i.e. the commonly used columns.)
To include others:

```py
from nemosis import defaults

defaults.table_columns["BIDPEROFFER_D"] += ["BIDSETTLEMENTDATE", "ENERGYLIMIT", "FIXEDLOAD", "LASTCHANGED", "MR_CAPACITY", "PASAAVAILABILITY", "PERIODID", "RECALL_PERIOD", "ROCDOWN", "ROCUP", "VERSIONNO"]
df = dynamic_data_compiler(...)
```

## Example File

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

=== "Raw Text with Metadata"
    ```csv
    C,SETP.WORLD,DVD_BIDPEROFFER_D,AEMO,PUBLIC,2026/10/09,15:24:40,001791523480565,MONTHLY_ARCHIVE,001791523480565
    I,BID,BIDPEROFFER_D,4,SETTLEMENTDATE,DUID,BIDTYPE,DIRECTION,INTERVAL_DATETIME,BIDSETTLEMENTDATE,OFFERDATE,PERIODID,VERSIONNO,MAXAVAIL,FIXEDLOAD,ROCUP,ROCDOWN,ENABLEMENTMIN,ENABLEMENTMAX,LOWBREAKPOINT,HIGHBREAKPOINT,BANDAVAIL1,BANDAVAIL2,BANDAVAIL3,BANDAVAIL4,BANDAVAIL5,BANDAVAIL6,BANDAVAIL7,BANDAVAIL8,BANDAVAIL9,BANDAVAIL10,LASTCHANGED,PASAAVAILABILITY,MR_CAPACITY,ENERGYLIMIT,RECALL_PERIOD
    D,BID,BIDPEROFFER_D,4,"2026/09/01 00:00:00",ADPBA1,ENERGY,GEN,"2026/09/01 04:05:00","2026/09/01 00:00:00","2026/09/01 03:56:41",1,1,3,0,4,4,,,,,0,0,0,0,0,0,0,0,0,6,"2026/09/01 03:56:41",6,,,24000
    D,BID,BIDPEROFFER_D,4,"2026/09/01 00:00:00",ADPBA1,ENERGY,GEN,"2026/09/01 04:10:00","2026/09/01 00:00:00","2026/09/01 04:01:37",2,1,3,0,4,4,,,,,0,0,0,0,0,0,0,0,0,6,"2026/09/01 04:01:37",6,,,24000
    D,BID,BIDPEROFFER_D,4,"2026/09/01 00:00:00",ADPBA1,ENERGY,GEN,"2026/09/01 14:45:00","2026/09/01 00:00:00","2026/09/01 14:36:34",129,1,6,0,4,4,,,,,0,0,0,0,0,0,0,0,0,6,"2026/09/01 14:36:34",6,,,24000
    D,BID,BIDPEROFFER_D,4,"2026/09/01 00:00:00",ADPBA1,ENERGY,GEN,"2026/09/01 04:15:00","2026/09/01 00:00:00","2026/09/01 04:06:48",3,1,3,0,4,4,,,,,0,0,0,0,0,0,0,0,0,6,"2026/09/01 04:06:48",6,,,24000
    D,BID,BIDPEROFFER_D,4,"2026/09/01 00:00:00",ADPBA1,ENERGY,GEN,"2026/09/01 04:20:00","2026/09/01 00:00:00","2026/09/01 04:11:46",4,1,3,0,4,4,,,,,0,0,0,0,0,0,0,0,0,6,"2026/09/01 04:11:46",6,,,24000
    D,BID,BIDPEROFFER_D,4,"2026/09/01 00:00:00",ADPBA1,ENERGY,GEN,"2026/09/01 04:25:00","2026/09/01 00:00:00","2026/09/01 04:16:38",5,1,3,0,4,4,,,,,0,0,0,0,0,0,0,0,0,6,"2026/09/01 04:16:38",6,,,24000
    D,BID,BIDPEROFFER_D,4,"2026/09/01 00:00:00",ADPBA1,ENERGY,GEN,"2026/09/01 04:30:00","2026/09/01 00:00:00","2026/09/01 04:21:34",6,1,3,0,4,4,,,,,0,0,0,0,0,0,0,0,0,6,"2026/09/01 04:21:34",6,,,24000
    D,BID,BIDPEROFFER_D,4,"2026/09/01 00:00:00",ADPBA1,ENERGY,GEN,"2026/09/01 04:35:00","2026/09/01 00:00:00","2026/09/01 04:26:32",7,1,3,0,4,4,,,,,0,0,0,0,0,0,0,0,0,6,"2026/09/01 04:26:32",6,,,24000
    D,BID,BIDPEROFFER_D,4,"2026/09/01 00:00:00",ADPBA1,ENERGY,GEN,"2026/09/01 04:40:00","2026/09/01 00:00:00","2026/09/01 04:31:46",8,1,3,0,4,4,,,,,0,0,0,0,0,0,0,0,0,6,"2026/09/01 04:31:46",6,,,24000
    D,BID,BIDPEROFFER_D,4,"2026/09/01 00:00:00",ADPBA1,ENERGY,GEN,"2026/09/01 04:45:00","2026/09/01 00:00:00","2026/09/01 04:36:41",9,1,3,0,4,4,,,,,0,0,0,0,0,0,0,0,0,6,"2026/09/01 04:36:41",6,,,24000
    D,BID,BIDPEROFFER_D,4,"2026/09/01 00:00:00",ADPBA1,ENERGY,GEN,"2026/09/01 04:50:00","2026/09/01 00:00:00","2026/09/01 04:41:43",10,1,3,0,4,4,,,,,0,0,0,0,0,0,0,0,0,6,"2026/09/01 04:41:43",6,,,24000
    ...
    C,"END OF REPORT",1003
    ```

## Availability

Visibility: Public

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 into one place, in [this CSV metadata file](../../manifests/per_table/csv/BIDPEROFFER_D.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
2 GB when zipped,
22 GB as unzipped CSV.

!!! tip "Tip"
    This table is large.
    Simply calling `pd.read_csv()` might fill up all the memory on your laptop.
    (As a rule of thumb, you need double the amount of memory as the size of the CSV.)
    You will need to think hard about memory optimisation.
    e.g. consider using [Polars](#polars) instead of Pandas, and selecting only the columns you care about.

## Deduplication and PDR Loader Configuration

The primary keys are:

- [`BIDTYPE`](#bidtype)

- [`DIRECTION`](#direction)

- [`DUID`](#duid)

- [`INTERVAL_DATETIME`](#interval_datetime)

- [`SETTLEMENTDATE`](#settlementdate)

!!! tip tip
    Bid deduplication is particularly tricky.
    See [the guide](../../guide/querying.md#bids).

The transaction type is ["insert"](https://di-help.docs.public.aemo.com.au/Content/pdrLoader/How_it_works.htm?TocPath=pdrLoader%7CAbout+pdrLoader%7C_____5#INSERT), which means that you will usually not see duplicate data.
If you do, you can deduplicate based on the primary keys, without sorting first.
Rows from different files with the same primary keys should have the same values.

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

| Report Name | Report Subtype | Version |
|---------------|-------------------|-----------|
| BID | BIDPEROFFER_D  | 3 |
| BID | BIDPEROFFER_D  | 4 |

This means that the CSV files start with metadata columns:

```csv
I,BID,BIDPEROFFER_D,3,...
D,BID,BIDPEROFFER_D,3,...
```

or

```csv
I,BID,BIDPEROFFER_D,4,...
D,BID,BIDPEROFFER_D,4,...
```

## Indexes

- [`LASTCHANGED`](#lastchanged)

## Links

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

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

## Other Information

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