SETCPDATA
SETCPDATA shows meter settlement data for each connection point. This is the key view for retailers to verify energy charges. A regional summary view is also provided. As the view has values for each connection point by period, for each meter data file, it is a very large view. The table is populated for participants using Data Model 5.2. For participants using Data Model 5.3 or higher,
SET_ENERGY_TRANSACTIONSandSET_ENERGY_GENSET_DETAILreplace SETCPDATA.
Deprecation Warning
This table is in the HISTORICAL TABLES package, so is likely deprecated.
The Connection point details (in SETCPDATA) are confidential to the participant and host retailer that the connection points relate to. By comparison, the regional data (
SETCPDATAREGION) is publically available.Source
SETCPDATA updates with each Settlement run.
Column Schema
MDA
Metering Data Agent
SQL Type: VARCHAR2(10)
Polars Type: str
This column is mandatory, and a primary key.
PARTICIPANTID
Unique participant identifier
For more information, see the dedicated documentation page.
SQL Type: VARCHAR2(10)
Polars Type: pl.Categorical
This column is mandatory, and a primary key.
PERIODID
Settlements Trading Interval.
SQL Type: NUMBER(10,0)
Polars Type: pl.Int64
This column is mandatory, and a primary key.
SETTLEMENTDATE
Calendar Settlement Date
Warning
Despite what the name suggests, this is a datetime, not a date.
SQL Type: DATE
Polars Type: pl.Datetime()
This column is mandatory, and a primary key.
Example: 2026/01/20 00:05:00
TCPID
Connection point identifier
SQL Type: VARCHAR2(10)
Polars Type: pl.Categorical
This column is mandatory, and a primary key.
VERSIONNO
Settlement run no
SQL Type: NUMBER(10,0)
Polars Type: pl.UInt64
This column is mandatory, and a primary key.
AFE
Accounted For Energy for this Market Customer FRMP and TNI in the Settlements Trading Interval, excluding any UFEA component
SQL Type: NUMBER(18,8)
Polars Type: pl.Float64
This column is not mandatory.
AGE
Adjusted Gross Energy for this Market Customer FRMP and TNI in the Settlements Trading Interval. When GS commences, this includes the UFEA amount in the settlement runs.
SQL Type: NUMBER(18,8)
Polars Type: pl.Float64
This column is not mandatory.
CPEEP
Connection Point Excess Energy Price = EEP * TLF
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is not mandatory.
CPRRP
Connection Point Price = RRP * TLF
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is not mandatory.
DME
Sum of ME- for all NMIs at this Market Customer FRMP and TNI in the Settlements Trading Interval.
SQL Type: NUMBER(18,8)
Polars Type: pl.Float64
This column is not mandatory.
EEP
Excess Energy Price
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is not mandatory.
EP
settlement amount in $ for trading period
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is not mandatory.
EXPORTENERGYCOST
The total cost of energy purchased at the connection point by the participant in this settlement interval
SQL Type: NUMBER(18,8)
Polars Type: pl.Float64
This column is not mandatory.
IGENERGY
Import Gross energy into the pool - MWh
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is not mandatory.
IMPORTENERGYCOST
The total cost of energy sold at the connection point by the participant in this settlement interval
SQL Type: NUMBER(18,8)
Polars Type: pl.Float64
This column is not mandatory.
INENERGY
Import Nett energy into the pool - MWh, plus UFEA if the UFEA amount is positive. When GS commences, this includes the UFEA amount in the settlement runs.
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is not mandatory.
IPOWER
Import reactive power
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is not mandatory.
LASTCHANGED
Last date and time record changed
For more information, see the dedicated documentation page.
SQL Type: DATE
Polars Type: pl.Datetime()
This column is not mandatory.
Example: 2026/01/20 00:05:00
METERRUNNO
Meter Run Number = version number of the meter file
SQL Type: NUMBER(10,0)
Polars Type: pl.UInt64
This column is not mandatory.
REGIONID
Region Identifier
For more information, see the dedicated documentation page.
The SQL type is VARCHAR2(10).
This is actually a factor/enum, with values:
-
QLD1 -
VIC1 -
TAS1 -
NSW1 -
SA1 -
SNOWY1
This column is not mandatory.
RRP
Regional Reference Price
For more information, see the dedicated documentation page.
SQL Type: NUMBER(20,5)
Polars Type: pl.Float64
This column is not mandatory.
TA
Export - Import of Net energy (MWh)
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is not mandatory.
TLF
Transmission Loss Factor
SQL Type: NUMBER(7,5)
Polars Type: pl.Float64
This column is not mandatory.
UFEA
Share of UFE allocated to this FRMP and TNI in the Settlements Trading Interval.
SQL Type: NUMBER(18,8)
Polars Type: pl.Float64
This column is not mandatory.
XGENERGY
Export Gross energy from the pool - MWh
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is not mandatory.
XNENERGY
Export Nett energy from the pool - MWh, plus (UFEA * -1) if the UFEA amount is negative. When GS commences, this includes the UFEA amount in the settlement runs.
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is not mandatory.
XPOWER
Export reactive power
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is not mandatory.
APC
Not used
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is unused.
HOSTDISTRIBUTOR
Not used
SQL Type: VARCHAR2(10)
Polars Type: str
This column is unused.
RESC
Not used
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is unused.
RESP
Not used
SQL Type: NUMBER(16,6)
Polars Type: pl.Float64
This column is unused.
New Data Timing
After each settlement run
Code Examples
Polars
Casting is 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.
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("SETTLEMENTDATE", "LASTCHANGED").str.strptime(pl.Datetime, dt_s_fmt),
)
.cast(
{
"MDA": str,
"PARTICIPANTID": pl.Categorical,
"PERIODID": int, # or pl.Int64
"TCPID": pl.Categorical,
"VERSIONNO": int, # or pl.UInt64
"AFE": pl.Float64,
"AGE": pl.Float64,
"CPEEP": pl.Float64,
"CPRRP": pl.Float64,
"DME": pl.Float64,
"EEP": pl.Float64,
"EP": pl.Float64,
"EXPORTENERGYCOST": pl.Float64,
"IGENERGY": pl.Float64,
"IMPORTENERGYCOST": pl.Float64,
"INENERGY": pl.Float64,
"IPOWER": pl.Float64,
"METERRUNNO": int, # or pl.UInt64
"REGIONID": pl.Enum(["QLD1", "VIC1", "TAS1", "NSW1", "SA1", "SNOWY1"]),
"RRP": pl.Float64,
"TA": pl.Float64,
"TLF": pl.Float64,
"UFEA": pl.Float64,
"XGENERGY": pl.Float64,
"XNENERGY": pl.Float64,
"XPOWER": pl.Float64,
"APC": pl.Float64,
"HOSTDISTRIBUTOR": str,
"RESC": pl.Float64,
"RESP": pl.Float64,
}
)
# Drop deprecated/unused columns
.drop("APC", "HOSTDISTRIBUTOR", "RESC", "RESP")
# Deduplicate
# We want one row per ['MDA', 'PARTICIPANTID', 'PERIODID', 'SETTLEMENTDATE', 'TCPID', 'VERSIONNO']
# Tie-breaker: greatest value of ['LASTCHANGED']
.sort(["LASTCHANGED"], descending=False)
.unique(
subset=[
"MDA",
"PARTICIPANTID",
"PERIODID",
"SETTLEMENTDATE",
"TCPID",
"VERSIONNO",
],
keep="last",
)
)
Nemosis
This table is not yet available in Nemosis.
Availability
Visibility: Private
This table is not available in the public monthly MMSDM archive. Is is only available to registered market participants over FTP inside a VPN.
Deduplication and PDR Loader Configuration
The primary keys are:
PDR Loader configuration does not mention this table, so it is unclear how to choose which row to keep when there are multiple rows for a given set of primary keys.
You should probably take the row with the maximum LASTCHANGED.
Indexes
There is more than one index.
Index 1:
Index 2:
Links
This page as JSON (schema documented here, but may change)
Download a JSON Schema specification for this table.
Official AEMO schema documentation
Other Information
Package: HISTORICAL TABLES