=== MFCREX Crypto Exchange and Trading Platform ===
Contributors: cryptoexchange
Tags: cryptocurrency, exchange, trading, ico, staking
Requires at least: 6.2
Tested up to: 7.0
Stable tag: 1.1.9
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.

**[Live Demo](https://wpcrypto.net/demo/mfcrex/trading-pairs/)** | **[Documentation](https://wpcrypto.net/documentation/)**

== 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.

Try it live before you install: the [demo trading interface](https://wpcrypto.net/demo/mfcrex/trading-pairs/) runs real market data from Binance's public API.

= 🆓 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

**Liquidity & Market-Making Bots** 🔒
* Automated order-book depth bots for new exchanges that need visible liquidity from day one
* Configurable ladder orders (levels, spread, refresh interval) per trading pair
* Volume and price-range targets, with a daily spend cap per bot
* Trading hours scheduling and bot grouping for multi-pair setups
* Designed to respect and yield to real user orders (never trades against your customers)
* Run history and heartbeat monitoring from the admin dashboard

**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

== External 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

**MFCREX plugin developer**

Terms and Privacy for the plugin itself: https://wpcrypto.net/terms/ and https://wpcrypto.net/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/


**Freemius (PRO Upgrade Integration)**

This plugin uses Freemius to facilitate the optional PRO version upgrade flow. Freemius is only contacted when you explicitly click an upgrade-related action; no telemetry is sent in anonymous mode.

* **Service Provider:** Freemius Inc.
* **What it does:** Provides the in-WordPress checkout page when a user chooses to purchase the PRO version, and handles license activation/deactivation.
* **When data is sent:**
  - When you click "Get Pro Version" (opens Freemius hosted pricing page in-dashboard)
  - When you activate a PRO license key (sends key + site URL for validation)
* **Data transmitted:** License key (only on activation), site URL, plugin version, user email (only when entered at checkout).
* **Freemius Terms of Use:** https://freemius.com/terms/
* **Freemius Privacy Policy:** https://freemius.com/privacy/

== 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. Homepage overview - free trading engine plus a clear look at what the Pro add-on unlocks
2. Spot trading interface - live order book, chart and instant order execution
3. Built-in color themes - Light, Dark, Ocean, Navy and Purple, switchable per user
4. Admin control center - pending approvals, user management and platform revenue in one place
5. Trading pairs management - create and publish unlimited pairs with quick-setup buttons
6. Staking page (Pro add-on) - flexible and locked-term pools with a live rewards calculator
7. ICO/presale landing page (Pro add-on) - token sale page with countdown and progress tracking
8. Bonus manager - configure welcome gifts and time-bound campaigns for your users
9. Feature overview - what you get free vs. what the Pro add-on unlocks
10. Security & automation - CSRF/XSS protection, wallet generation and liquidity bots (Pro add-on)
11. Live dashboard preview - spot trading, order book and multi-currency wallets
12. Advanced trading tools - RSI/MA indicators, ICO campaigns and blockchain monitoring (Pro add-on)

== Changelog ==

= 1.1.9 - 2026-09-08 =
* General improvements and internal development updates

= 1.1.8 - 2026-08-08 =
* Added: managed Node Service integration for automatic deposit monitoring and blockchain webhook delivery
* Improved: license management page now shows subscription status more clearly
* General performance and reliability improvements

= 1.1.0 - 2026-06-20 =
* Added: streamlined in-WordPress checkout for the PRO version upgrade
* Added: My Account link in dashboard for licensed users
* Added: 11 new PRO feature previews in the menu (Trading Bots, Bonus Manager, Risk Management, Price Alerts, Notifications, VIP Levels, KYC, Referral, Mass Message, System Logs, DB Backup)
* Added: Pro upgrade banner on General Settings page for free users
* Added: Clickable PRO badges throughout settings (direct upgrade flow)
* Added: Inline "Upgrade now" links next to disabled PRO fields
* Improved: PRO feature CTA now opens in-WordPress checkout

= 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.1.8 =
Adds managed Node Service integration for automatic deposit monitoring.

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