Query Dataset
query_datasetFetch records from any of the 84 Elexon BMRS Insights datasets by its dataset code (MID market index/day-ahead prices, FUELHH generation by fuel, WINDFOR wind forecast, FREQ system frequency, TEMP temperature, REMIT outages, BOD/BOALF balancing bids and acceptances, and 77 more — call elexon_list_datasets for the directory). Pass a code and a datetime window; the correct window parameters for that dataset are chosen automatically. Keyless. Returns the raw records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Window end, ISO datetime. Ignored for settlement-date datasets. | |
| from | Yes | Window start, ISO datetime. For settlement-date datasets (B1610, MDB, MDO, PN, QPN, TUDM) this is the settlement date and settlement_period is also required. | |
| dataset | Yes | Dataset code, case-insensitive, e.g. "MID", "FUELHH", "WINDFOR", "FREQ", "REMIT". Use elexon_list_datasets to find one; an unrecognised code is rejected with the full list rather than passed upstream. | |
| date_param | No | Rarely needed — the window style is looked up per dataset. Pass "publishDateTime", "from", "settlement" (settlementDateFrom/To, which only FUELHH and FUELINST accept), "settlementDate", "measurement" or "submission" only to override that lookup. | |
| settlement_period | No | Settlement period 1-48. Required only for the settlement-date datasets B1610, MDB, MDO, PN, QPN and TUDM, which Elexon serves one period at a time. |