Manage peer-to-peer trading offers
P2P offers enable users to create buy or sell orders for cryptocurrency trading. Each offer includes configuration for amounts, pricing models, trade settings, location preferences, and user requirements. The system supports flexible JSON-based configurations for complex trading scenarios.
Users want to purchase cryptocurrency
Users want to sell cryptocurrency
The amountConfig field stores trading amount parameters as JSON:
The priceConfig field manages pricing strategy and calculations:
The tradeSettings field defines trading rules and conditions:
Being created
Awaiting review
Live for trading
Temporarily inactive
Successfully finished
User cancelled
Admin rejected
Time limit reached
Offers can be linked to multiple payment methods through the p2pOfferPaymentMethod junction table: