Schema ID: https://schema.nfh.global/P2PTrade/v2.0
Status: Current
P2PTrade is the current recommended schema for Peer-to-Peer energy trading contracts on the DEG network. It is a subclass of EnergyContract (which is itself a subclass of beckn:Contract).
P2PTrade inherits all properties from the Contract hierarchy. The full domain-specific attributes for P2P energy trading — pricing model, delivery windows, meter readings, energy resource and customer data — are defined in the companion EnergyTrade schema.
| File | Description |
|---|---|
attributes.yaml |
JSON Schema 2020-12 — subclass of EnergyContract |
context.jsonld |
JSON-LD context mapping P2PTrade to deg:P2PTrade |
vocab.jsonld |
RDF vocabulary — class definition with rdfs:subClassOf deg:EnergyContract |
beckn:Contract
└── deg:EnergyContract
└── deg:P2PTrade ← this schema
| Schema | Relationship | Description |
|---|---|---|
EnergyContract |
Parent | Intermediate base class for DEG energy contracts |
EnergyTrade |
Domain attributes (deprecated) | Full P2P trade attributes — deprecated, see P2PTrade subclasses |
EnergyTradeOffer |
Referenced | Pricing and delivery window attributes |
EnergyTradeDelivery |
Referenced | Meter readings and delivery tracking |