What UFTP is
The USEF Flex Trading Protocol in ten minutes: DSOs, aggregators and the CRO, congestion points, ISPs, the request–offer–order–settlement cycle, signing and transport.
The problem it solves#
A distribution grid is built for its peak. When heat pumps, chargers and solar push a feeder past its limit for a few hours a year, the distribution system operator (DSO) can reinforce it, or buy flexibility: pay someone to shift consumption or production away from those hours. That someone is usually an aggregator (AGR), which controls many small devices behind households' and businesses' connections and can move their load together.
UFTP is the protocol between them. The USEF Foundation designed it as part of the Universal Smart Energy Framework. Since version 3 it is maintained by LF Energy as Shapeshifter. Version 3.1.0 is the current one.
The parties#
| Role | Who | Sends |
|---|---|---|
| DSO | Distribution system operator | FlexRequest, FlexOrder, FlexSettlement, DSOPortfolio* |
| AGR | Aggregator | D-Prognosis, FlexOffer, FlexOfferRevocation, Metering, AGRPortfolio* |
| CRO | Common Reference Operator | the answers to portfolio updates and queries |
The CRO keeps the common reference: which congestion points exist (parts of the grid that can overload), and which connections behind them each aggregator represents.
Time is cut into ISPs#
Every power value applies to an imbalance settlement period (ISP), 15 minutes in European markets. ISPs are numbered from 1 within a local day in the message's time zone. A normal day has 96, but the day clocks go forward has 92 and the day they go back has 100. Getting that wrong moves a curtailment by an hour. uftp computes ISPs in the IANA zone of each message.
Power is in watts, and positive means consumption. A FlexRequest ISP with MinPower=-500000 and MaxPower=0 asks for up to 500 kW less consumption.
The trade cycle#
- Plan. The AGR sends a D-Prognosis: what its connections at a congestion point will draw.
- Validate. The DSO foresees congestion and sends a FlexRequest: these ISPs, this range of power. Some ISPs are Requested; others only say how much room is Available.
- The AGR answers with a FlexOffer: one or more options, each with ISPs, power and a price. The options are mutually exclusive.
- The DSO sends a FlexOrder for one option, possibly scaled by an activation factor.
- Operate. The AGR delivers. It may revoke an offer that was not ordered yet.
- Settle. Each month the DSO sends a FlexSettlement: what was ordered, what was delivered, the penalty, the net amount.
Every message is answered by its response (FlexOfferResponse, and so on), Accepted or Rejected with a reason, in the same conversation. There are 26 message types in all.
Signing and transport#
Each message is XML. It is signed with Cryptographic Scheme 1 (CS1), which is libsodium's crypto_sign: Ed25519, with the signature prepended to the message. The signed bytes go, Base64-encoded, into a SignedMessage wrapper that names the sender's domain and role. The wrapper is POSTed over HTTPS.
A receiver looks up the sender's public key. In production it comes from a DNS TXT record under _<role>._usef.<domain>. The receiver verifies the signature, then reads the message.
The HTTP answer only says whether the document was acceptable. The business answer, the response message, comes later as a POST of its own in the other direction.
Where to go from here#
- Getting started puts this into code.
- Specification notes lists where the 3.1.0 XSDs and the text disagree.