Synthron Crypto Trader is a cutting-edge, production-level cryptocurrency trading system designed to provide:
- Automated Trading: A live trading system powered by advanced strategies and real-time market analytics.
- Backtesting Capabilities: Test trading strategies on historical data to optimize performance.
- Comprehensive Risk Management: Features to safeguard your investments, including stop-loss, position sizing, and drawdown tracking.
- Scalability: A modular design that adapts seamlessly to evolving market dynamics.
- Robust Security: Secure wallet management with optimized gas reserves and compliance validation.
-
Trading System:
- Real-time market data fetching and analysis.
- Dynamic strategy execution for profitable trades.
- Integrated whitelist and blacklist for token selection.
-
Backtesting System:
- Historical data simulation to refine trading strategies.
- Performance metrics evaluation (e.g., ROI, Sharpe ratio).
-
Data Processing:
- Advanced analytics with clustering, trend detection, and whale activity monitoring.
- Rug pull and scam detection filters.
-
Risk and Wallet Management:
- Gas fee optimization and reserve tracking.
- Secure wallet integration with transaction validation.
-
Performance Tracking:
- Detailed reporting with metrics visualization.
- Alerts for key performance thresholds.
- Python Version: 3.9 or higher.
- Dependencies: Install required libraries using
pip install -r requirements.txt. - Environment Variables: Configure sensitive data in a
.envfile:WALLET_PRIVATE_KEY=your_wallet_private_key SOLANA_CLUSTER_URL=your_solana_cluster_url LOGGING_LEVEL=INFO
-
Clone the repository:
git clone https://github.com/your-repo/Synthron-Crypto-Trader.git cd Synthron-Crypto-Trader -
Install dependencies:
pip install -r requirements.txt
-
Set up the
.envfile:WALLET_PRIVATE_KEY=your_wallet_private_key SOLANA_CLUSTER_URL=your_solana_cluster_url LOGGING_LEVEL=INFO
-
Launch the application:
python main.py
-
Select from the main menu:
- 1: Run the live trading system.
- 2: Run the backtesting system.
- 3: Exit the application.
- The system fetches real-time data, applies strategies, and executes trades automatically.
- Logs are saved in
logs/synthron_trader.logfor debugging and review.
- Simulate strategies on historical data to refine and optimize trading performance.
- Results are saved as
backtesting_results.csv.
Synthron_Crypto_Trader/
│
├── config/ # Configuration modules (settings, thresholds, logging)
├── data/ # Data fetching, processing, and analytics
├── execution/ # Trade execution and order management
├── filters/ # Token selection filters (whitelist, blacklist, rug detection)
├── performance/ # Performance tracking, reporting, and backtesting
├── strategies/ # Trading strategies and risk management
├── utils/ # Utilities for logging, validation, and exceptions
├── wallet/ # Wallet and gas management
├── main.py # Main script for running the application
├── requirements.txt # Python dependencies
└── README.md # Project documentation
This project is licensed under the MIT License - see the LICENSE file for details.
We welcome contributions to improve the Synthron Crypto Trader. Please follow these steps:
- Fork the repository.
- Create a feature branch (
git checkout -b feature-branch). - Commit your changes (
git commit -m 'Add feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.
For support or inquiries, please contact us at [email protected].
Trading cryptocurrencies involves significant risk. Synthron Crypto Trader is provided "as is" without any guarantees. Users are responsible for their trading decisions and outcomes.
This document outlines the error handling strategies for the various APIs used in the SuperTradeX token scanning system.
-
No Mock Data: The system does not use mock data under any circumstances. Each API failure is handled according to specific rules.
-
Exponential Backoff: All API clients implement exponential backoff for retries, with increasing delays between attempts.
-
API-Specific Strategies: Each API service has a different strategy for handling failures after retries.
- Strategy: Keep retrying with increasing delays between attempts (up to 10 retries).
- On Failure: Return an empty DataFrame. This will result in no tokens to process.
- Delay Pattern: Base delay is 5 seconds, doubled after each attempt (capped at 5 minutes).
- Strategy: Retry up to 2 times with exponential backoff.
- On Failure: Return a score of 100, which will cause the token to fail validation and be dropped.
- Reason: High rugcheck scores indicate risk, so we assume potential problems with tokens that can't be verified.
- Strategy: Retry up to 2 times with exponential backoff.
- On Failure: Apply the minimum configured score (
MIN_SOLSNIFFER_SCORE). - Reason: We use a minimum threshold for validity, so we give tokens the benefit of the doubt at exactly that threshold.
- Strategy: Retry up to 2 times with exponential backoff.
- On Failure: Return
Noneand drop the token. - Reason: SolanaTracker provides essential validation data like LP burn percentage and Twitter information.
- Tokens without a valid Twitter account are always dropped.
- Twitter URLs must begin with "https://twitter.com/" or "http://twitter.com/".
- Empty Twitter fields cause tokens to be rejected.
- All API clients include detailed logging for debugging.
- Proxy support is included for handling rate limits.
- The system implements database cleanup before each scan to refresh the valid tokens list.
SuperTradeX is an automated cryptocurrency trading system focused on the Solana blockchain. The platform identifies, analyzes, and trades promising tokens using various strategies and validation layers.
-
Token Discovery & Validation
- Real-time token scanning using DexScreener API
- Multi-layer validation using RugCheck, SolSniffer, and Twitter
- Configurable validation thresholds
-
Trading Strategies
- Entry/exit strategy with support for multiple criteria
- Risk management with position sizing and stop-loss
- Take-profit targets and technical exit conditions
-
Order Management
- Automated order placement and execution
- Position tracking and management
- Balance monitoring and risk controls
-
Data Management
- SQLite database for token and trade storage
- Real-time price and volume tracking
- Historical data analysis
The platform consists of several key components:
-
Configuration & Settings
- Centralized settings management
- Environment variable configuration
- API key management
-
Token Scanner
- Discovers trending tokens
- Validates tokens using multiple APIs
- Filters tokens based on configurable criteria
-
Strategy Selector
- Implements trading strategies
- Manages entry and exit conditions
- Handles position sizing and risk management
-
Order Manager
- Places and executes trades
- Tracks positions and orders
- Manages account balance
-
Data Management
- Stores token and trade data
- Tracks performance metrics
- Provides historical analysis
-
Clone the repository:
git clone https://github.com/yourusername/supertradex.git cd supertradex -
Install dependencies:
pip install -r requirements.txt
-
Copy the example environment file and configure your settings:
cp .env.example .env
-
Edit the
.envfile with your API keys and configuration:DEXSCREENER_API_KEY=your_key RUGCHECK_API_KEY=your_key SOLSNIFFER_API_KEY=your_key TWITTER_API_KEY=your_key TWITTER_API_KEY_SECRET=your_secret
-
Start the trading system:
python main.py
-
Monitor the logs:
tail -f logs/trader.log
The system can be configured through environment variables in the .env file:
- API Settings: Configure API endpoints and keys
- Trading Settings: Set cycle intervals and retry parameters
- Token Validation: Define minimum thresholds for token validation
- Risk Management: Configure position sizing and stop-loss parameters
- Logging: Set log level and file location
The codebase is organized into the following directories:
config/: Configuration and settings managementdata/: Data management and token scanningstrategies/: Trading strategy implementationexecution/: Order execution and managementutils/: Utility functions and helpers
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
This software is for educational purposes only. Use at your own risk. The developers are not responsible for any financial losses incurred through the use of this software.