openapi: 3.0.3
info:
title: Transmission Ratings and Operating Limits Information Exchange (TROLIE)
x-logo:
altText: "TROLIE logo"
url: "images/TROLIE-horizontal-color.svg"
description: |
This specification defines a set of operations for the exchange of power
system ratings and limits between entities that own and operate the electric
power system in North America. In particular, it is designed to support the
exchange of Ambient Adjusted Ratings (AARs), pursuant to FERC Order 881. It
is published as a community standard to facilitate interoperability
in these exchanges.
The specification conceives of the exchange as being between two primary
entities:
* A [Ratings Provider](https://trolie.energy/concepts#ratings-provider) is
an entity that is responsible for providing ratings on some set of power
system resources, e.g., Transmission Facilities, typically a Transmission
Owner or Transmission Operator. The ratings are provided to a
Clearinghouse Provider whose is responsible for determining the operating
limits of the power system resources.
* The [Clearinghouse Provider](https://trolie.energy/concepts#clearinghouse-provider) is
typically a Transmission Provider (FERC) and a Reliability Coordinator (NERC).
Adjacent Clearinghouse Providers exchange ratings in order to establish
operating limit values for the power system resources that are shared
between them.
A Ratings Provider is assumed by this specification to have pre-coordinated
with a Clearinghouse Provider to identify the former's Ratings Obligation,
i.e., the set of power system resources for which they will provide ratings.
Additionally, the Ratings Provider will have similarly pre-coordinated the
definition of their Monitoring Sets, i.e., their power system limits of
interest. The nature and method of pre-coordination is out-of-scope for this
specification.
Note that this API makes a strict distinction between the terms rating and
limit. Colloquially, these terms are often used interchangeably. However,
in the context of this specification, they have distinct meanings. At a
high-level, the specification defines an exchange where ratings go in and
limits come out. A Clearinghouse is a function for determining the operating
limits from the ratings it has on-hand, including those that are proposed by
Ratings Providers and any applicable time-bound static ratings.
This interaction diagram highlights the primary requests and responses that
are defined in this spec. Note that not all of the operations will be
supported by every implementation.
version: 1.1.0
contact:
name: TROLIE Maintainers
email: maintainers@trolie.energy
url: https://trolie.energy
license:
name: Community Specification License 1.0
url: https://spdx.org/licenses/Community-Spec-1.0.html
servers:
- url: https://trolie.example.com
tags:
- name: Real-Time
description: |
If permitted by the Clearinghouse Provider, its Ratings Providers can use
these functions to exchange real-time ratings, supplementing or replacing
traditional telemetry protocols like ICCP.
These ratings are based on real-time measurements of ambient conditions
and will be used by Transmission Providers for real-time grid operations
processes, including state estimation and real-time markets. The clearing
of real-time ratings may be more frequent than for forecast ratings, but
the frequency is the prerogative of the Clearinghouse Provider.
These ratings may be either AARs or DLRs.
- name: Forecasting
description: |
The Forecasting API operations define the exchange of forecasted ratings,
including the 240-hour-ahead forecasted AAR data exchange required by FERC
Order 881. The operations support submitting rating proposals, querying
in-use limits, and monitoring the health and validity of submissions
against the Rating Provider's obligations.
- name: Seasonal
description: |
Seasonal ratings are static ratings associated with extended durations,
typically months. These are typically used in both planning and
operations.
Power system resources that are exempt from providing AARs generally
operate at a seasonal rating. Even for resources using dynamic ratings, a
seasonal rating is still necessary. This acts as a recourse when a dynamic
rating is unavailable. For example, a dynamic rating
might be unavailable during communication outages or for forecasts beyond
the ten-day period required by FERC Order 881.
- name: Seasonal Overrides
description: |
A Seasonal Override instructs the system to use a temporary static rating
instead of any concurrent Seasonal Rating for a resource.
A typical use case is a so-called 'de-rate' due to a temporary clearance
issue for a transmission facility that is exempt from providing AARs.
Exempt facilities typically operate at a seasonal rating. However, instead
of updating the seasonal rating schedule, a Ratings Provider can send a
Seasonal Override.
During the override period, the Clearinghouse uses the Seasonal
Override rating instead of any scheduled seasonal ratings.
For resources required to provide AARs, a Ratings Provider would issue a
Temporary AAR Exception to address temporary conditions requiring a static
rating.
- name: Temporary AAR Exceptions
description: |
A [Temporary AAR Exception](https://trolie.energy/concepts#temporary-aar-exception) is
provided by the Ratings Provider when a Ratings Obligation cannot be
fulfilled, due to some temporary operating condition impacting the related
power system resource. This could occur in various scenarios:
* An equipment failure.
* An unforeseen condition on a related part of the power grid.
* Some ambient condition that is not part of the model is heating the
line, like a wildfire.
* Something in the surrounding environment is affecting the amount that a
line is allowed to sag. For example, this may occur for lines over
rivers when very large ships pass under them
A Temporary AAR Exception serves two main purposes: documenting the reason
for the exception and providing a temporary rating value set. It is employed
in three distinct circumstances:
1. Firstly, Order 881 mandates documentation and archival of all use of
alternate ratings in lieu of AARs. Ratings Providers should continue to
provide real-time and forecast ratings for the affected resource, but
these should match the rating provided with the Temporary AAR Exception
while the latter is in effect. This temporary rating, and the reason that
it occurred, must be captured in history regardless of the provided
ratings. The reason and the end date of the effective window may be
updated after the object has been created, up to a configurable threshold.
If the Ratings Providers provides ratings that deviate from the static
Temporary AAR Exception rating, the Clearinghouse Provider must decide
whether to use those or the static rating. The Clearinghouse Provider
advise its Ratings Providers on how it will choose ahead of time. This
specification recommends using the dynamic rating provided, but it does
not mandate it.
2. Secondly, Temporary AAR Exceptions apply when the Clearinghouse
Provider is generating forecast rating proposals on behalf of the Ratings Provider, e.g., when lookup tables are provided ahead of time by the Ratings Provider.
Since there is no external ratings, the Clearinghouse Provider
wouldn't otherwise know that a temporary static rating is needed.
3. Finally, for facilities where dynamic ratings are provided, it is
possible that a communications outage or other issue could prevent the
Clearinghouse Provider from receiving the dynamic ratings. In this case,
the Clearinghouse Provider would use a Temporary AAR Exception rating.
- name: Monitoring Sets
description: |
[Monitoring Sets](https://trolie.energy/concepts#monitoring-sets) are
named sets of power system resources that may be used to filter ratings
and limits returned by queries against these APIs. How Monitoring Sets are
defined is beyond the scope of the TROLIE specification, and it is assumed
that the sender and receiver have predefined the appropriate Monitoring
Sets.
- name: limit-type
description:
x-displayName: Limit Type
x-tagGroups:
- name: Operations
tags:
- Real-Time
- Forecasting
- Seasonal
- Seasonal Overrides
- Temporary AAR Exceptions
- Monitoring Sets
- name: Common Schemas
tags:
- limit-type
paths:
/limits/forecast-snapshot:
$ref: paths/limits_forecast-snapshot.yaml#/current
/limits/forecast-snapshot/{period}:
$ref: paths/limits_forecast-snapshot.yaml#/historical
/limits/regional/forecast-snapshot:
$ref: paths/limits_forecast-snapshot.yaml#/regional
/rating-proposals/realtime:
$ref: paths/rating-proposals_realtime.yaml
/limits/realtime-snapshot:
$ref: paths/limits_realtime-snapshot.yaml#/global
/limits/regional/realtime-snapshot:
$ref: paths/limits_realtime-snapshot.yaml#/regional
/rating-proposals/forecast:
$ref: paths/rating-proposals_forecasts.yaml
/seasonal-ratings/snapshot:
$ref: paths/seasonal-ratings-snapshot.yaml
/rating-proposals/seasonal:
$ref: paths/rating-proposals_seasonal.yaml
/seasonal-overrides:
$ref: paths/seasonal-overrides.yaml
/seasonal-overrides/{id}:
$ref: paths/seasonal-overrides_{id}.yaml
/temporary-aar-exceptions:
$ref: paths/temporary-aar-exceptions.yaml
/temporary-aar-exceptions/{id}:
$ref: paths/temporary-aar-exceptions_{id}.yaml
/monitoring-sets:
$ref: paths/monitoring-sets.yaml
/monitoring-sets/{id}:
$ref: paths/monitoring-sets_{id}.yaml
/default-monitoring-set:
$ref: paths/monitoring-sets-default.yaml
components:
responses:
# No content responses
'304': &rate-limited
description: Not Modified.
headers: &rate-limited-headers
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
'204':
description: Operation successful. No Content.
headers: &accepted-headers
<<: *rate-limited-headers
ETag:
$ref: "#/components/headers/ETag"
'201':
description: Created.
headers:
<<: *accepted-headers
Location:
$ref: "#/components/headers/Location"
# responses allowing content
'400-problem':
<<: *rate-limited
description: Malformed request
content: &problem
"application/problem+json":
schema:
$ref: '#/components/schemas/problem'
'401-empty':
<<: *rate-limited
description: Unauthorized
content: &empty
application/*:
schema:
$ref: "#/components/schemas/empty"
'403-empty':
<<: *rate-limited
content: *empty
description: Access denied
'404-empty':
<<: *rate-limited
description: Not Found
content: *empty
'406-problem':
<<: *rate-limited
description: Not Acceptable (Content negotiation failed)
content: *problem
'410-problem':
<<: *rate-limited
description: |
Gone. The requested resource is no longer available. TROLIE
implementations MAY return this status code when a resource is known to
have been deleted or archived, if the authenticated client would
otherwise have had authorized access to the resource.
content: *problem
'413-empty':
<<: *rate-limited
description: Payload too large
content: *empty
'415-problem':
description: Unsupported media type
headers:
<<: *rate-limited-headers
Accept:
schema:
type: string
pattern: '^((application\/vnd\.trolie\.(?:[a-z-]+)\.v\d+\+json(;q=(0\.\d+|1\.0))?))(\,\s*(application\/vnd\.trolie\.(?:[a-z-]+)\.v\d+\+json(;q=(0\.\d+|1\.0))?))*$'
maxLength: 500
examples:
"Forecast Proposal":
summary: Used to update the area-wide forecast
value: "application/vnd.trolie.rating-forecast-proposal.v1+json"
"Real-Time Proposal":
summary: Used to update the area-wide nowcast
value: "application/vnd.trolie.rating-realtime-proposal.v1+json"
Accept-Encoding:
description: |
The server must support and prefer Brotli yet must accept gzip for
compatibility.
schema:
type: string
enum:
- "br,gzip"
content: *problem
'422-problem':
<<: *rate-limited
description: Unprocessable content
content: *problem
'429-empty':
description: Too many requests (rate limiting)
headers:
<<: *rate-limited-headers
Retry-After:
$ref: "#/components/headers/Retry-After"
content: *empty
'500-empty':
description: An unexpected error occurred
headers: *rate-limited-headers
content: *empty
schemas:
empty:
description: Intended to proactively avoid information disclosure
type: string
nullable: true
maxLength: 0
pattern: ^$
example: ""
problem:
description: See [RFC9457](https://www.rfc-editor.org/rfc/rfc9457#appendix-A).
type: object
properties:
type: &uri-reference
type: string
format: "uri-reference"
maxLength: 2048
description: |
A URI reference that identifies the problem type.
See [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457#name-type)
example: "https://iana.org/assignments/http-problem-types#date"
title: &description
type: string
format: free-text
maxLength: 500
description: |
A short, human-readable summary of the problem type.
See [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457#name-title)
status:
type: number
minimum: 100
maximum: 599
description: |
The HTTP status code generated by the origin server for this occurrence of the problem.
detail:
<<: *description
description:
A human-readable explanation specific to this occurrence of the problem.
See [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457#name-detail)
instance:
<<: *uri-reference
description: |
A URI reference that identifies the specific occurrence of the problem.
It may or may not yield further information if dereferenced.
See [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457#name-status)
required: [ type ]
headers:
ETag:
description: >
An opaque, unique identifier--typically a hash value--for a specific
version of a resource. The modeled resource state is what is versioned,
not the content of any particular representation. The server MUST use a
strong validator so that the same ETag is returned regardless of the
media type of the representation.
schema:
type: string
format: hash
maxLength: 256
additionalProperties: false
Location:
description: >
The "Location" header field is used in some responses to refer to a specific
resource in relation to the response. In TROLIE, this is always associated with
a 201 response (a POST), and therefore refers to the URI of the resource created.
schema:
type: string
format: uri-reference
maxLength: 1000
X-RateLimit-Limit:
description: The number of allowed requests in the current period
schema:
type: integer
format: int32
minimum: 0
maximum: 1000
X-RateLimit-Remaining:
description: The number of remaining requests in the current period
schema:
type: integer
format: int32
minimum: 0
maximum: 1000
X-RateLimit-Reset:
description: The number of seconds left in the current period
schema:
type: integer
format: int32
minimum: 0
maximum: 1000
Retry-After:
schema:
type: integer
format: int32
minimum: 0
maximum: 60
example: 60
description: The seconds to delay after the response is received.
securitySchemes:
oauth2-primary-flow:
type: oauth2
description: Support RFC8725 JWT tokens.
flows:
clientCredentials:
tokenUrl: https://no-server/oauth2
scopes:
read:monitoring-sets: Read monitoring sets
read:forecast-proposals: Read Forecast rating proposals
read:realtime-proposals: Read real-time rating proposals
read:seasonal-proposals: Read seasonal rating proposals
read:temporary-aar-exceptions: Read temporary AAR exceptions
read:seasonal-overrides: Read seasonal overrides
write:monitoring-sets: Write monitoring sets
write:forecast-proposals: Submit forecasted ratings
write:realtime-proposals: Submit realtime ratings
write:seasonal-proposals: Submit seasonal ratings
write:temporary-aar-exceptions: Write temporary AAR exceptions
write:seasonal-overrides: Write seasonal overrides
read:operating-snapshot: >-
Read the ratings and limits snapshots in-use by the transmission
provider
read:regional-operating-snapshot: Read a Regional Operating Snapshot
write:regional-operating-snapshot: Write a Regional Operating Snapshot
security:
- oauth2-primary-flow: []