NIP-69: Peer-to-Peer Trading
NIP-69 defines a protocol for peer-to-peer trading over Nostr, creating a unified order book across multiple platforms rather than fragmented liquidity pools.
Event Kind
- Kind 38383 - P2P order events
Order Structure
Orders use tags to specify trade parameters:
d- Order IDk- Order type (buy/sell)f- Fiat currency (ISO 4217 code)amt- Bitcoin amount in satoshisfa- Fiat amountpm- Payment methods acceptedpremium- Price premium/discount percentagenetwork- Settlement layer (onchain, lightning, liquid)expiration- When the order expires
Order Lifecycle
Orders progress through statuses:
pending- Open and available for matchingin-progress- Trade initiated with counterpartysuccess- Trade completedcanceled- Withdrawn by makerexpired- Past expiration time
Security
The bond tag specifies a security deposit that both parties must pay, providing protection against abandonment or fraud.
Primary sources:
Mentioned in: