One platform. A world of energy.
SRI LANKAOur data, explained
Data & Methodology

Clear sources.
Honest context.

How LEX turns published energy information into a useful, traceable view of the system.

Three sources, different reporting periods

Daily generation comes from the public JSON endpoints used by the NSO generation summary on EDLCare. System performance comes from NTNSP’s published annual HTML tables. The reliability overview comes from the numeric targets of NTNSP’s animated counters, rather than their initial zero display.

Generation is a published daily report, not a real-time feed. System performance retains its published year columns. The reliability overview describes its figures as annual but does not specify a year.

Automatic refresh

LEX requests generation updates when the page opens and every five minutes while the page is active. The server caches generation responses for five minutes and annual NTNSP sources for six hours. A manual refresh respects those source-protection intervals. There is no promise that the publisher produces a new report every five minutes.

The latest complete entry in the source’s daily energy summary determines the default reporting day. Dates are shown for Sri Lanka. A source check timestamp records when LEX checked the source, separately from the reporting date.

Checks before display

A daily summary must include a valid reporting date, a positive total and non-negative renewable and conventional energy values. Their sum must agree with the total within the larger of 0.02 GWh or 0.5%. Missing or invalid fields remain unavailable. Selected-day peak, mix and curve readings are accepted only when their dates match that report.

Source figures retain their published units. LEX does not convert MVA to MW. Battery flows can be negative. Estimates, forecasts and telemetry in the publisher’s data retain the publisher’s interpretation; consult the original report notes.

How insights are calculated

Renewable share = source-reported renewable energy ÷ source-reported total energy × 100. The daily generation change = (selected day’s total − preceding calendar day’s total) ÷ preceding calendar day’s total × 100. A daily comparison is shown only when both consecutive calendar days exist.

Infrastructure insights use the current published year columns and totals. Display values are rounded; downloadable values retain additional precision. A line chart uses the actual report dates so missing days are not presented as equally spaced consecutive observations.

Unavailable sources and cached values

A failed request preserves the last successful data, its reporting period and its successful-fetch timestamp. LEX marks it cached and reports the failed check. If no successful snapshot exists, it shows unavailable. Daily data older than three days receives an explicit age notice. A source availability label is not a live grid-health indicator.

Scope differences matter

NTNSP’s reliability overview and system performance table contain different capacity totals without enough published detail to reconcile them. They are displayed separately. LEX does not reconcile them without a definition from the publisher or infer reliability, available reserve or connection capacity from an annual infrastructure total.

The educational exchange

The exchange workspace uses the original LEX demo’s deterministic fictional market model. Each product and selected delivery date generates 24 hourly example prices, buy and sell volumes, market depth and clearing outcomes. Day-ahead, intraday and green energy are separate sample products. Practice orders are saved separately and do not change the example auction results.

Practice orders remain in the current browser. Orders can be reviewed, cancelled or cleared. No financial account, payment, scheduling, metering, credit or settlement process is provided.

Original sources

Explore LEX