End-of-day Data

This endpoint provides settled daily futures and options data, including prices, volume, and open interest. You may request a market code, an initial code, or an exact instrument code.

For typical post-close availability times, see Data Availability.


Endpoint

GET https://www.asxenergy.com.au/api/data

Parameters

Exactly one of futures or options must be provided in each request.

NameTypeMandatoryDescription
futuresstringYES (mutually exclusive with options)Get historical data for futures products.
Accepted market codes:
- au_electricity
- nz_electricity
- au_gas
- au_environmental
- nz_environmental
Accepted futures codes:
- Initial code (e.g. BNH, EVJ)
- Exact code (e.g. HNZ2026, GNU2025)
optionsstringYES (mutually exclusive with futures)Get historical data for options products.
Accepted market codes:
- au_electricity
- nz_electricity
Accepted options codes:
- Initial code (e.g. BNZ, HQZ2026)
- Exact code (e.g. HNZ20260012000, EAH20260010000C)
datestringNODate in format yyyymmdd.
Default: the latest date available for the specified code or market.

To list available dates for a code or market, see Get Available Dates.


Errors

StatusWhenBody
400Neither or both of futures and options were provided, the date is invalid, or the code is invalid{"error":"..."}
403Your token is not entitled to the requested market{"error":"forbidden"}
401
429
Authentication failure or rate limit exceededSee Data API overview

For API Trial tokens, a date outside the allow time range returns status 400.


CSV Support

The API supports CSV-formatted responses when requested via the Accept header. To receive data in CSV format, set the following header in your request:

Accept: text/csv

Futures

Returns settled end-of-day data for futures products.

Response

NameTypeMandatoryDescription
futuresstringYESEcho of the futures query value
datestringYESEffective date as yyyymmdd
dataarrayYESFutures row objects listed below

data array items:

NameTypeNotes
codestringFutures code
datestringDate as yyyymmdd
bid_sizestringBest bid quantity
bidstringBest bid price
ask_sizestringBest ask quantity
askstringBest ask price
firststringFirst traded price
highstringSession high
lowstringSession low
settlestringSettlement price
volumestringTotal traded volume
open_intereststringOpen interest

Example

Request:

GET https://www.asxenergy.com.au/api/data?futures=au_electricity

JSON response:

{
  "futures": "au_electricity",
  "date": "20250227",
  "data": [
    {
      "code": "BNH2025",
      "date": "20250227",
      "bid_size": "3",
      "bid": "84.15",
      "ask_size": "1",
      "ask": "85.40",
      "first": "86.00",
      "high": "86.50",
      "low": "83.75",
      "settle": "84.50",
      "volume": "43",
      "open_interest": "1920"
    }
    // ...
  ]
}

CSV response:

code,date,bid_size,bid,ask_size,ask,first,high,low,settle,volume,open_interest
BNH2025,20250227,3,84.15,1,85.40,86.00,86.50,83.75,84.50,43,1920
...

Options

Returns settled end-of-day data for options products.

Response

NameTypeMandatoryDescription
optionsstringYESEcho of the options query value
datestringYESEffective date as yyyymmdd
dataobjectYESObject with put and call arrays listed below

data object:

NameTypeDescription
putarrayPut option rows
callarrayCall option rows

data.put / data.call array items:

NameTypeNotes
codestringOptions code
datestringDate as yyyymmdd
bid_sizestringBest bid quantity
bidstringBest bid price
ask_sizestringBest ask quantity
askstringBest ask price
firststringFirst traded price
highstringSession high
lowstringSession low
settlestringSettlement price
volumestringTraded volume
open_intereststringOpen interest
implied_volatilitystringImplied volatility

Example

Request:

GET https://www.asxenergy.com.au/api/data?options=HNZ2026&date=20250401

JSON response:

{
  "options": "HNZ2026",
  "date": "20250401",
  "data": {
    "put": [
      {
        "code": "HNZ20260004000P",
        "date": "20250401",
        "bid_size": "0",
        "bid": "0.00",
        "ask_size": "0",
        "ask": "0.00",
        "first": "0.00",
        "high": "0.00",
        "low": "0.00",
        "settle": "0.00",
        "volume": "0",
        "open_interest": "25",
        "implied_volatility": "30.97"
      }
      // ...
    ],
    "call": [
      {
        "code": "HNZ20260004000C",
        "date": "20250401",
        "bid_size": "0",
        "bid": "0.00",
        "ask_size": "0",
        "ask": "0.00",
        "first": "0.00",
        "high": "0.00",
        "low": "0.00",
        "settle": "80.30",
        "volume": "0",
        "open_interest": "25",
        "implied_volatility": "13.00"
      }
      // ...
    ]
  }
}

CSV response:

When response type is CSV, all puts and calls are flattened into a single list.

code,date,bid_size,bid,ask_size,ask,first,high,low,settle,volume,open_interest,implied_volatility
HNZ20260004000C,20250401,0,0.00,0,0.00,0.00,0.00,0.00,80.30,0,25,13.00
HNZ20260004000P,20250401,0,0.00,0,0.00,0.00,0.00,0.00,0.00,0,25,30.97
...