=== MFCREX Crypto Exchange and Trading Platform ===
Contributors: cryptoexchange
Tags: cryptocurrency, exchange, trading, ico, staking
Requires at least: 6.2
Tested up to: 6.9
Stable tag: 1.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Transform your WordPress site into a professional cryptocurrency exchange platform.

== Description ==

This plugin transforms your WordPress site into a cryptocurrency exchange platform. It bridges Web2 and Web3 technologies and allows you to create a crypto trading interface without coding knowledge.

= 🆓 FREE VERSION FEATURES =

**Trading Exchange Module**
* Professional spot trading interface
* Advanced charts integration (real-time price charts)
* Market order execution with instant processing
* Order book display (buy/sell orders with depth)
* Trading history and activity logs
* Real-time balance updates
* Order cancellation system
* One-click repeat order functionality
* Mobile responsive interface
* Theme system (5 themes: Light, Dark, Ocean, Navy, Purple)

**Balance Management**
* Multi-currency wallet support
* Dual balance system (available + locked)
* Atomic balance operations (thread-safe)
* BC Math library for precise decimal calculations
* MySQL transaction locking for data integrity
* Balance update notifications

**Trading Pairs Management**
* Create unlimited custom trading pairs
* Quick setup buttons for popular coins (BTC, ETH, USDT, BNB, SOL, DOGE, XRP, ADA, etc.)
* Auto-fetch symbol data from exchange API
* Price and quantity precision settings
* Min/max order limits configuration
* Step size configuration
* Commission rate settings (0-100%)
* Testnet/Mainnet support

**Admin Dashboard**
* User balance management interface
* Add/remove user balances
* Trading pairs configuration
* Order management and monitoring
* URL structure customization
* Tab-based settings organization
* User search functionality

**Chart & Market Data**
* Professional charting widget integration
* Real-time price updates
* 24-hour change percentage
* Volume tracking (base and quote)
* Multiple timeframes support
* RSI and MA indicators
* Auto theme adjustment for charts

**Security Features**
* WordPress nonce verification on all AJAX calls
* CSRF token protection
* XSS prevention with output escaping
* SQL injection prevention (prepared statements)
* Input sanitization and validation
* Rate limiting on sensitive operations
* Secure session management

**Technical Features**
* AJAX-powered interface (no page refresh needed)
* WordPress coding standards compliance
* Translation ready with text domains
* Custom post type for trading pairs
* Transient caching (1 hour for API calls)
* Database optimization with indexes
* Error handling and rollback support
* WebSocket-ready architecture

**User Interface**
* Professional trading dashboard
* Collapsible order book sections
* Mobile-optimized design
* Touch gesture support
* Dropdown menus for mobile
* Loading states and spinners
* Success/error notifications
* Smooth animations and transitions


= 💎 PRO VERSION FEATURES (PREMIUM) =

**ICO/Presale Module** 🔒
* Launch professional token sale campaigns
* Dynamic landing pages with countdown timers
* 5 unique banner styles (VIP, Neon, Hologram, Wave, Glass)
* Multiple payment methods (card payments, crypto, Web3 wallets)
* Tokenomics visualization and team showcase
* Ready-to-use templates for instant setup

**Buy Crypto Module** 🔒
* Exchange API integration with 300+ cryptocurrencies
* Real-time pricing and instant balance updates
* Custom coin support with individual pricing
* Commission management per coin
* Min/max purchase limits
* Pre-configured settings for popular coins

**Advanced Exchange Features** 🔒
* Limit orders
* Advanced charts integration
* 5 color themes customization
* Repeat order functionality
* Advanced commission settings
* Withdrawal system

**Staking Module** 🔒
* Flexible staking periods (7-365 days)
* Dynamic APY rates per period
* Automatic reward calculations
* Early withdrawal penalties
* Detailed performance statistics
* Ready-to-use staking packages

**Shop Module** 🔒
* Digital product sales with crypto payments
* Support for multiple payment gateways
* Guest checkout capability
* Automatic delivery after admin approval
* Inventory and order management
* Coupon system

**Blockchain Monitor** 🔒
* Real-time blockchain transaction tracking
* Multi-chain support (BTC, ETH, TRON, BSC, Polygon, Arbitrum)
* Smart contract verification
* No external API required
* Transaction hash tracking

**Live Market Data** 🔒
* WebSocket connection for real-time data
* Real-time price updates for hundreds of coins
* 24-hour change percentages
* Trading volume data
* Millisecond-level latency

**Wallet Generator** 🔒
* Create real blockchain wallets
* Support for Ethereum, Bitcoin, TRON, Solana
* Layer 2 networks support
* Bulk wallet generation (1000+ at once)
* Private key management (downloadable, not stored)
* Unique wallet per user
* QR code generation
* Social sharing capabilities

**Advanced Security System** 🔒
* 5-layer security implementation
* Email verification with one-time codes
* 2FA with authenticator apps (TOTP)
* Messenger bot verification
* Security words and images
* 3-level KYC system
* Rate limiting and session security

**Advanced User Management** 🔒
* Multi-wallet system per user
* Internal transfers between users
* VIP levels (10 tiers)
* Referral system
* Advanced transaction history
* Login tracking
* Custom commission rates per user

**Payment Integration** 🔒
* Popular payment gateway support
* Card payments (all major cards, mobile wallets)
* Advanced crypto balance payments
* Web3 wallet integration
* Transaction hash verification
* Sandbox testing support

**Additional PRO Features** 🔒
* API access for external integrations
* White-label options
* Custom branding
* Priority support
* Regular updates
* Custom feature requests


= 📱 Technical Excellence =

* Fully responsive (4-5 breakpoints)
* AJAX-powered (no page refreshes)
* Prepared statements for security
* WordPress coding standards
* Translation ready
* Performance optimized

= 🛠️ Requirements =

* WordPress 6.2 or higher
* PHP 7.4 or higher
* MySQL 5.7+ or MariaDB 10.3+
* HTTPS enabled (for security)
* Standard WordPress hosting

= 🔗 Third-Party Services =

This plugin connects to external services to provide real-time cryptocurrency trading functionality:

**Binance API**

This plugin uses the Binance API to fetch real-time market data, execute trades, and manage orders.

* **Service Provider:** Binance
* **What it does:** Provides real-time cryptocurrency prices, order book data, trade execution, and account balance information.
* **When data is sent:**
  - When loading trading pairs (fetches available symbols and price data)
  - When placing buy/sell orders (sends order details: symbol, quantity, price, order type)
  - When canceling orders (sends order ID)
  - When checking order status (sends order ID)
* **Data transmitted:** Trading pair symbols, order parameters (price, quantity, side, type), API credentials (stored encrypted on your server), user IP address (by Binance for security).
* **Binance Terms of Use:** https://www.binance.com/en/terms
* **Binance Privacy Policy:** https://www.binance.com/en/privacy

Users must create their own Binance account and API keys to use the trading features. The plugin supports both Binance Testnet (for testing) and Mainnet (for real trading).

**TradingView Charting Library**

This plugin uses TradingView's charting widget to display real-time cryptocurrency price charts on the trading interface.

* **Service Provider:** TradingView Inc.
* **What it does:** Provides interactive financial charts with technical indicators (RSI, Moving Averages) for cryptocurrency trading pairs.
* **When data is sent:** When a user loads the trading page, the TradingView widget script is loaded from TradingView's servers. This transmits the user's IP address, browser information, and the requested trading pair symbol to TradingView.
* **Data transmitted:** User's IP address, browser user-agent, requested chart symbol, and chart configuration preferences.
* **TradingView Terms of Use:** https://www.tradingview.com/policies/
* **TradingView Privacy Policy:** https://www.tradingview.com/privacy-policy/

* Documentation: https://wpcrypto.net/wpcrypto-docs/
* Demo: https://wpcrypto.net


== Frequently Asked Questions ==

= Is this plugin free to use? =
Yes, the core trading exchange functionality is completely free. PRO features are available as a premium upgrade.

= Do I need coding knowledge to use this plugin? =
No coding knowledge required. Simply install, activate, and configure through the WordPress admin panel.

= Does this support real trading? =
Yes, the plugin supports both testnet and mainnet modes. You can use testnet for testing and mainnet for real trading with exchange API integration. Configure this in the settings panel.

= Can I customize the appearance? =
Yes, the plugin comes with 5 built-in themes and supports custom CSS for further customization.

== Screenshots ==

1. Features Overview - Complete feature set and capabilities banner
2. Exchange Interface - Professional trading dashboard with advanced charts
3. Order Placement - Order entry form and active orders table
4. Ocean Theme - Turquoise color theme for modern look
5. Purple Theme - Elegant purple color theme
6. All Theme Options - Complete color theme selection (Light, Dark, Ocean, Navy, Purple)
7. Bridge Web2 to Web3 - Connect traditional web with blockchain on your WordPress site

== Changelog ==

= 1.0 - 2025-01-21 =
* Initial release
* Core trading exchange functionality
* Spot trading with market orders
* Advanced charts integration
* Real-time order book
* Multi-currency wallet system
* 5 professional themes
* Exchange API integration
* Admin dashboard
* User balance management
* Trading pairs configuration
* Mobile responsive design
* AJAX-powered interface
* Security features (CSRF, XSS protection)
* WordPress coding standards compliance

== Upgrade Notice ==

= 1.0 =
Initial release - Transform your WordPress site into a cryptocurrency exchange platform.

== Credits ==

Developed by Web3Coders
Powered by WordPress
Real-time market data integration