Automated Trading Terminal v2.0
A professional-grade React application for automated binary options trading on the Deriv platform with WebSocket integration, real-time market data visualization, and advanced trading strategies.
✨ Core Functionality
- 🔌 WebSocket connection to Deriv API (
wss://ws.binaryws.com/websockets/v3) - 📊 Real-time price charts with canvas-based sparklines
- 💰 Live balance tracking and account management
- 📈 Trade history with P&L analytics
- 🎯 Win rate and performance metrics
✨ Trading Modes
- Manual Trading: Place individual CALL/PUT trades
- Auto Bot: Automated trading with configurable parameters
- Martingale Strategy: Dynamic stake adjustment on losses
- Multiple Symbols: 11+ Deriv market instruments
✨ User Interface
- 🌌 Cyberpunk-themed dark UI with cyan/neon accents
- ⚡ Real-time system logs
- 📱 Responsive grid layout
- 🎨 Smooth animations and transitions
- 📡 Connection status indicator
- Node.js >= 16.x
- npm or yarn
# Clone the repository
git clone https://github.com/DRUPAL23/Acederivfx.git
cd Acederivfx
# Install dependencies
npm install
# Start development server
npm run devThe app will open at http://localhost:3000
- Go to Deriv.com
- Log in to your account
- Navigate to Settings → API Token
- Create a new token with permissions:
- ✅ Read
- ✅ Trade
- Copy the token and paste it into the app's authentication panel
- Demo Account:
wss://ws.binaryws.com/websockets/v3?app_id=1089 - Live Account: Same endpoint (app_id may vary)
- Authenticate with your Deriv API token
- Select Symbol from dropdown (Volatility 10-100, Boom, Crash, etc.)
- Choose Direction: RISE (CALL) or FALL (PUT)
- Set Stake: Minimum $0.35
- Set Duration: 1-10 ticks
- Click BUY: Execute the trade
- Switch to AUTO mode
- Configure Parameters:
- Auto Stake: Starting stake amount
- Max Trades: Maximum trades before bot stops
- Martingale: Enable/disable stake doubling on losses
- Martingale Factor: Multiplier (default: 2x)
- Start Bot: Bot will execute trades automatically
- Monitor: Watch real-time P&L and logs
- Stop Bot: Click STOP to halt immediately
| Metric | Description |
|---|---|
| BALANCE | Current account balance |
| LIVE PRICE | Real-time market price |
| WIN RATE | Percentage of winning trades |
| NET P&L | Cumulative profit/loss |
| TRADES | Total number of trades |
| W / L | Wins / Losses ratio |
Acederivfx/
├── public/
│ └── index.html # HTML entry point
├── src/
│ ├── index.jsx # Main DerivBot component
│ ├── App.jsx # App wrapper
│ └── main.jsx # React DOM render
├── package.json # Dependencies & scripts
├── vite.config.js # Vite configuration
├── .gitignore # Git ignore rules
└── README.md # This file
npm run devnpm run buildOutput will be in the dist/ folder.
npm run preview- Framework: React 18.3.1
- Build Tool: Vite 5.2.0
- API: Deriv WebSocket API v3
- Styling: Inline CSS with CSS animations
- Visualization: HTML5 Canvas (sparklines)
The component uses React hooks for state:
useState: Auth, market data, bot parameters, UI stateuseRef: WebSocket connection, pending requests, bot stateuseCallback: Optimized event handlersuseEffect: Side effects (canvas drawing, auto-scroll, subscriptions)
User Input
↓
Authorize with API key
↓
Subscribe to Ticks (real-time prices)
↓
Place Orders (Buy contracts)
↓
Subscribe to Contract Updates
↓
Process Results (Won/Lost)
↓
Update UI & Logs
Doubles the stake after each loss to recover losses with a single win.
Example:
- Trade 1: $1 → Loss
- Trade 2: $2 → Loss
- Trade 3: $4 → Win (recovers $7 loss + $4 profit)
Flips the trade direction (CALL→PUT or PUT→CALL) after each loss.
Currently no props - the component is self-contained. Future versions may accept:
onConnected: Callback when WebSocket connectsonTradeExecuted: Callback after each tradeinitialConfig: Default bot settings
- Verify your API token is correct
- Check internet connection
- Ensure "Read" and "Trade" permissions are enabled
- Ensure you have sufficient balance
- Check minimum stake ($0.35)
- Verify market is open for selected symbol
- Check for open contracts (must close before trading)
- Symbol may be unavailable
- WebSocket connection may be dropped
- Try changing symbol or reconnecting
- Reduce Log History: Default 200 entries (configurable)
- Chart Update Rate: Limited to 80 ticks for smooth rendering
- Auto-Bot Delays: Consider adding delays between trades
- Memory Usage: Trades limited to 50 records
- API keys are passwords - Never share them
- Use DEMO account first - Test thoroughly before real money
- Local storage risk - API keys stored in memory only (cleared on disconnect)
- SSL/TLS - Use HTTPS in production
- Code review - Audit before deploying
This is an unofficial integration with Deriv API. Use at your own risk.
- Binary options trading carries significant risk
- Past performance does not guarantee future results
- Automated trading strategies can fail unexpectedly
- Always use a demo account first
- Never trade with money you can't afford to lose
- Deriv and Binary.com are not affiliated with this project
MIT License - See LICENSE file for details
Contributions welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
For issues, questions, or feedback:
- Open an issue on GitHub
- Check existing issues for solutions
- Review Deriv API documentation: https://api.deriv.com
- ✨ Complete rewrite with modern React hooks
- 🎨 Cyberpunk UI theme
- 📊 Canvas-based sparkline charts
- 🤖 Auto-bot with martingale support
- 📱 Responsive design
- ⚡ Real-time WebSocket updates
- Initial release
Made with ❤️ by DRUPAL23
Last Updated: 2026-05-19