# PARTICIPANT

> PARTICIPANT sets out Participant ID, name and class for all participants.

> PARTICIPANT is public data, so is available to all participants.
> 
> Source
> 
> PARTICIPANT updates as new participants register or existing
> participants change details.

## Column Schema

### PARTICIPANTID

> Unique participant identifier

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:

- `ACACIRET`
- `ACACISGA`
- `ACC`
- `ACCELER`
- `ACENERGY`
- `ACLESGA`
- `ACTEW`
- `ACTEWAGL`
- `ACTEWM`
- `ACTEWMP`

### ACN

> Australian Company Number; Nine Numbers XXX-XXX-XXX

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

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: `1998/06/30 22:01:22`

### NAME

> Full name of participant

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

This column is not mandatory.

Examples:

- `1st Energy Pty Ltd`
- `ACLE Services Pty Ltd`
- `ACT Civil & Administrative Tribunal`
- `ADZ Energy (Queensland) P/L(Administrators Appt)(Receivers & Managers Appt)`
- `AEMO (NDSC-North)`
- `AEMO (NDSC-South)`
- `AEMO Help Desk`
- `AEMO IT Web Interface`
- `AEMO Internal Account NECA Information Protocol`
- `AEMO Internal DI Participant Account 1`

### PARTICIPANTCLASSID

> Class of participant

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

This column is not mandatory.

Examples:

- `MARKET PARTICIPANT`
- `NONMARKET`
- `POOL PARTICIPANT`
- `SPECIAL PARTICIPANT`

### PRIMARYBUSINESS

> Identifies primary business activity of participant

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

This column is not mandatory.

Examples:

- `Auction Trader`
- `BANKING`
- `Bank`
- `Bank - Trader`
- `Banking - Reallocator`
- `Controller / Operator / Intermediary`
- `Customer`
- `Customer / Generator`
- `Data Access`
- `Develop Energy Software Systems`

### DESCRIPTION {: .unused-column }

> Not used

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

This column is unused.

Examples:

- `2nd participant id for Attunga Capital Pty Ltd`
- `AEMO Interface to the WEB via Walter Muller`
- `Adding Mkt Customer`
- `Citipower`
- `Correcting Austraclear account`
- `Country Energy`
- `Country Energy `
- `DEFAULT LOCAL RETAILER FOR WHOLESALE`
- `DEFAULT LOCAL RETAILER FOR WHOLSALE`
- `Data Provider only`

## New Data Timing

> When new participants register or existing participants details are changed

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

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),
    )
    .cast(
        {
            "PARTICIPANTID": pl.Categorical,
            "ACN": str,
            "NAME": str,
            "PARTICIPANTCLASSID": str,
            "PRIMARYBUSINESS": str,
            "DESCRIPTION": str,
        }
    )
    # Drop deprecated/unused columns
    .drop("DESCRIPTION")
    # Deduplicate
    # We want one row per ['PARTICIPANTID']
    # Tie-breaker: greatest value of ['LASTCHANGED']
    .sort(["LASTCHANGED"], descending=False)
    .unique(subset=["PARTICIPANTID"], 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',
    "PARTICIPANT",
    "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["PARTICIPANT"] += ["ACN", "PRIMARYBUSINESS", "DESCRIPTION"]
df = dynamic_data_compiler(...)
```

## Example File

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

=== "Raw Text with Metadata"
    ```csv
    C,SETP.WORLD,DVD_PARTICIPANT,AEMO,PUBLIC,2026/10/09,16:21:27,001791526887816,MONTHLY_ARCHIVE,001791526887816
    I,PARTICIPANT_REGISTRATION,PARTICIPANT,1,PARTICIPANTID,PARTICIPANTCLASSID,NAME,DESCRIPTION,ACN,PRIMARYBUSINESS,LASTCHANGED
    D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,ETSAP,"MARKET PARTICIPANT","ETSA Corporation",,,"Market Customer - Load Non-dispatch","1998/06/30 22:01:22"
    D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,OPTIMA,"MARKET PARTICIPANT","OPTIMA Energy",,,"Scheduled Market Generator","1998/06/30 22:01:22"
    D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,ACTEW,"SPECIAL PARTICIPANT","Actew Energy Limited",,,,"2000/01/28 09:41:57"
    D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,CAPELEC,"MARKET PARTICIPANT","Capricornia Electricity Corporation Ltd",,,,"1998/06/30 22:01:22"
    D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,ENERGNSP,"MARKET PARTICIPANT","Energex (NSP)",,,,"1998/06/30 22:01:22"
    D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,ETSAPP,"SPECIAL PARTICIPANT","ETSA Utilities Pty Ltd",,,"Local Network Operator","2000/01/31 11:41:26"
    D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,FNQEB,"MARKET PARTICIPANT","FAR North Queensland Electricity Corporation Ltd",,,,"1998/06/30 22:01:22"
    D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,KINETIK,"MARKET PARTICIPANT","Kinetik Energy Pty Ltd",,,"Market Customer - Load Non-dispatch","1999/12/20 09:40:29"
    D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,MACKAY,"MARKET PARTICIPANT","Mackay Electricity Corporation Ltd",,,,"1998/06/30 22:01:22"
    D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,NORQEB,"MARKET PARTICIPANT","North queensland Electricity Corporation Ltd",,,,"1998/06/30 22:01:22"
    D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,POWERL,"MARKET PARTICIPANT","Powerlink Queensland",,,,"1998/06/30 22:01:22"
    ...
    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/PARTICIPANT.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.

 Every month in between has a file. (No gaps.)

## Data Size

Each year of data is approximately
344 KB when zipped,
3 MB as unzipped CSV.

## Deduplication and PDR Loader Configuration

The primary keys are:

- [`PARTICIPANTID`](#participantid)

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 |
|---------------|-------------------|-----------|
| PARTICIPANT_REGISTRATION | PARTICIPANT  | 1 |

This means that the CSV files start with metadata columns:

```csv
I,PARTICIPANT_REGISTRATION,PARTICIPANT,1,...
D,PARTICIPANT_REGISTRATION,PARTICIPANT,1,...
```

`ROW_FILTER_TYPE` is LASTCHANGED

## Indexes

- [`LASTCHANGED`](#lastchanged)

## Links

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

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

## Other Information

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