A FastAPI-based service for managing peer-to-peer (P2P) cryptocurrency trading operations, integrating with the Bybit P2P API.
- 🔄 P2P Advertisement Management
- Create and manage buy/sell advertisements
- View online advertisements
- Cancel/offline existing advertisements
- 💰 Order Operations
- View pending and historical orders
- Mark orders as paid
- Release digital assets
- Get detailed order information
- 👤 User Management
- Fetch account information
- Get current balance
- Manage payment methods
- Python 3.8+
- MongoDB
- FastAPI
- Motor (async MongoDB driver)
POST /api/ads/create
- Create a new api advertisementGET /api/ads/list
- Get personal advertisement listGET /api/ads/online
- Get online advertisementsPOST /api/ads/offline
- Take an advertisement offlineGET /api/ads/{ad_id}
- Get advertisement details
GET /api/orders
- Get api orders with filtersGET /api/orders/pending
- Get pending ordersGET /api/orders/{order_id}
- Get order detailsPOST /api/orders/{order_id}/pay
- Mark order as paidPOST /api/orders/{order_id}/release
- Release digital assets
GET /api/user/balance
- Get current balanceGET /api/user/info
- Get account informationGET /api/user/payments
- Get user payment methods