P2P Trading in Mobile Exchange App

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.

Development and support of all types of mobile applications:

Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1All 1735 services
P2P Trading in Mobile Exchange App
Complex
from 2 weeks to 3 months
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    792
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    671
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1097
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    969
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    914
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    495

Implementing P2P Trading in a Mobile Exchange App

P2P trading is direct crypto-to-fiat exchange between users with escrow protection from the exchange. Buyer transfers fiat to seller (via bank, cash, payment system), seller confirms — exchange releases crypto from escrow to buyer. Architecturally, it's a messenger plus trading platform plus arbitration system in one app.

Listing Ads: Filters and Sorting

The ads page is the key P2P screen. Users see a list of offers with price, limits, payment methods, and seller rating.

Filters: amount (fiat), payment method (Tinkoff, Sberbank, QIWI, cash, etc.), fiat currency. Sort by price. On load, use pagination with cursor (not offset) since the list changes in real-time.

Binance P2P API (unofficial): POST https://p2p.binance.com/bapi/c2c/v2/friendly/c2c/adv/search. Official exchanges with P2P provide their own APIs — structure is similar.

// Android — fetching P2P ads listing
data class P2PSearchRequest(
    val asset: String,        // BTC, USDT, ETH
    val fiat: String,         // RUB, USD, EUR
    val tradeType: String,    // BUY or SELL
    val payTypes: List<String>, // ["Tinkoff", "RaiffeisenBank"]
    val page: Int = 1,
    val rows: Int = 20,
    val transAmount: String = "" // transaction sum to filter by limits
)

Trade Flow: 7 States

P2P trades are a finite state machine:

State Action Who
CREATED Order created, crypto locked in escrow System
WAITING_PAYMENT Awaiting fiat payment Buyer
PAID Buyer clicked "Paid" Buyer
RELEASING Seller verifying receipt Seller
COMPLETED Seller confirmed, crypto sent System
APPEALING Dispute opened (appeal) Either
CANCELLED Cancelled Either

In mobile UI — trade screen with timer, instructions for current stage, and action buttons. Payment timer (usually 15–30 min) is critical: if it expires, the order auto-cancels.

Embedded Chat

Chat within a trade is mandatory. Seller and buyer must agree on details; buyer can send payment proof screenshots.

Minimum chat: WebSocket for real-time messages, image support (receipt screenshots), system messages about trade status changes.

// iOS — P2P chat message model
struct P2PChatMessage: Identifiable, Codable {
    let id: String
    let orderId: String
    let senderId: String
    let messageType: MessageType // text / image / system
    let content: String
    let imageUrl: String?
    let timestamp: Date

    var isSystemMessage: Bool { messageType == .system }
}

Images are critical: users send bank transfer screenshots as payment proof. Need photo upload with full-screen preview. Store screenshots for arbitration.

Push Notifications and Timers

P2P without notifications is dead functionality. Mandatory events:

  • New chat message — immediately
  • Buyer clicked "Paid" — immediately to seller
  • Timer expires in 5 min — to both
  • Appeal opened — to both

Deep link from notification opens the specific trade screen by orderId.

Appeal (Dispute) and Arbitration

On conflict, either party can open a dispute. UI shows button "Open Appeal" with mandatory reason selection and evidence attachment (screenshots). After opening, chat freezes; exchange arbitrator joins.

Mobile must support uploading multiple images for evidence. On iOS — UIImagePickerController or PHPickerViewController (iOS 14+). On Android — ActivityResultContracts.GetMultipleContents.

Seller Rating and Verification

Seller card: trade completion %, trades in 30 days, first response time, verification badges (KYC, Email, SMS). Directly impacts trust — show full stats, don't hide.

Timeline: MVP P2P module — 6–10 weeks. Includes ad listing with filters, trade flow with timer, embedded chat with images, push notifications. Without arbitration system and seller verification — 4–5 weeks.