How mhmmd2005/otc-exchange works
OTC Exchange is a Django REST backend foundation with Vue frontends; the README explicitly says the frontend is not yet integrated with the backend. The documented product domains cover identity, KYC, markets, wallets, OTC orders, trades, transactions, security and support, alongside payments and withdrawals visible in the source tree. The principal user workflow is account access followed by verification and financial activity, but the excerpts do not establish a complete end-to-end route. Backend service relationships below use indexed references or shown calls; broader domain links are omitted where evidence is unavailable.
Main entry points: services.py Payment processing · toman_withdrawal_service.py Withdrawals · kyc/models.py KYC · accounts/models.py Accounts
Components 26
Vue clients
- Vue app
frontend/src/App.vue - App routing
frontend/src/router/index.ts - Auth service
frontend/src/services/auth.service.ts - API client
frontend/src/services/api.ts
Identity and trust
Exchange domains
- Markets
backend/apps/markets - OTC orders
backend/apps/otc - Orders
backend/apps/orders - Trades
backend/apps/trades
Money movement
- Wallets
backend/apps/wallets/models.py - Wallet operations
backend/apps/wallets/services.py - Payment processing
backend/apps/payments/services.py - Payment records
backend/apps/payments/models.py - Payment gateways
backend/apps/payments/gateways/base.py - Transactions
backend/apps/transactions/models.py - Withdrawals
backend/apps/withdrawals/services/toman_withdrawal_service.py - Withdrawal records
backend/apps/withdrawals/models.py
User services
- Support
backend/apps/support - Notifications
backend/apps/notifications/models.py - Email delivery
backend/apps/notifications/tasks.py - Email templates
backend/apps/notifications/email_templates.py - OTP delivery
backend/apps/accounts/tasks.py - SMS service
backend/apps/accounts/services/sms.py
Other components
- User
Connections 29
- User → Vue app: uses
- Vue app → App routing: routes through
frontend/src/main.ts - Auth service → API client: resolves requests
frontend/src/services/auth.service.ts - KYC → Accounts: references
backend/apps/kyc/models.py - Wallet operations → Wallets: updates balances
backend/apps/wallets/services.py - Payment processing → Accounts: checks user
backend/apps/payments/services.py - Payment processing → KYC: checks verification
backend/apps/payments/services.py - Payment processing → Payment records: records attempts
backend/apps/payments/services.py - Payment processing → Payment gateways: uses gateways
backend/apps/payments/services.py - Payment processing → Wallet operations: credits wallet
backend/apps/payments/services.py - Payment processing → Transactions: creates transaction
backend/apps/payments/services.py - Withdrawals → Accounts: checks user
backend/apps/withdrawals/services/toman_withdrawal_service.py - Withdrawals → KYC: checks verification
backend/apps/withdrawals/services/toman_withdrawal_service.py - Withdrawals → Wallets: locks balance
backend/apps/withdrawals/services/toman_withdrawal_service.py - Withdrawals → Withdrawal records: records attempt
backend/apps/withdrawals/services/toman_withdrawal_service.py - Withdrawals → Transactions: links settlement
backend/apps/withdrawals/services/toman_withdrawal_service.py - Email delivery → Notifications: loads notification
backend/apps/notifications/tasks.py - Email delivery → Email templates: renders email
backend/apps/notifications/tasks.py - OTP delivery → SMS service: sends OTP
backend/apps/accounts/tasks.py - User → Accounts: authenticates
- User → KYC: submits verification
- User → Markets: views markets
- User → OTC orders: trades OTC
- User → Orders: manages orders
- User → Trades: views trades
- User → Wallets: uses wallet
- User → Withdrawals: requests withdrawal
- User → Support: requests support
- User → Security: manages security