BarkBOT is a Telegram trading bot designed to facilitate seamless and secure trading of BARK tokens (BARK) and SOL on the Solana blockchain. With its user-friendly interface, advanced trading features, and robust security measures, BarkBOT offers a comprehensive trading experience for both novice and experienced traders.
- Jupiter Swap API Integration: Leverage the Jupiter Swap API for optimal 2022-token swaps.
- Automatic Buying: Easily purchase BARK tokens by pasting the token address.
- Referral Rewards: Generate referral links and earn rewards from referred users.
- PNL Tracking: Monitor your profit and loss with detailed analytics.
- Enhanced Security: Secure your account with two-factor authentication (2FA).
- Transaction Fees Utilization: Use transaction fees for BARK token buyback, charity, donations, and governance voting.
- Solana Wallet Management: Generate new wallets, check balances, transfer SOL and BARK tokens, and export private keys.
- Price Alerts: Set and receive price alerts for BARK tokens.
- User Profile Management: View and update your user profile.
- Custom Notifications: Set notifications for various events.
- Advanced Settings: Customize RPC, slippage, and transaction priority.
- Interactive User Interface: Intuitive navigation with inline keyboards.
- Detailed Token Information: View token details before purchasing.
- Market Data: Access real-time market data and trends.
- Transaction History Pagination: View transaction history with pagination.
- User Authentication: Secure user authentication and verification.
- Custom Commands: Easily manage commands with a custom command system.
- Secure Data Storage: Encrypt and securely store sensitive user data.
- Comprehensive Help Command: Interactive help with buttons for different topics.
- Python 3.12 or higher
- pip (Python package installer)
- A Telegram account
-
Clone the Repository
git clone https://github.com/bark-community/bark-trading-bot.git cd bar-trading-kbot
-
Create and Activate a Virtual Environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Dependencies
pip install -r requirements.txt
-
Set Up Environment Variables
Create a
.env
file in the project root directory and add your environment variables:TELEGRAM_TOKEN= ENCRYPTION_KEY=encryption_key JUPITER_TRADING_BOT_API_KEY=jupiter_trading_endpoint SOLANA_API_KEY=solana_api_key HELIUS_RPC_DEVNET_URL= HELIUS_RPC_MAINNET_URL= CUSTOM_RPC_URL=
curl -L 'https://jupiter-swap-api.quiknode.pro/YOUR_ENDPOINT/quote?inputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&outputMint=So11111111111111111111111111111111111111112&amount=10000000' \ -H 'Accept: application/json'
-
Run the Bot
python bot.py
Send /start
to the bot in Telegram to begin. This will generate a new Solana wallet for you if you don't already have one.
To ensure security, verify your account by sending /verify
. You will be prompted to provide your email for verification.
Send 💰 Buy and paste the token address to purchase BARK tokens. Confirm the token information before proceeding with the purchase.
Send 🔄 Refresh
to update and view your current SOL and BARK balances.
Send 🏦 Wallet
to access options for withdrawing SOL or BARK tokens, or exporting your private key.
Send ⚙️ Settings
to customize your RPC, slippage, and transaction priority.
Send 📊 Dashboard
to view an overview of your trading performance, including PNL, total volume, win/loss ratio, and recent transactions.
Send 📈 Market Data
to access the latest market data, including price, volume, market cap, and 24-hour change.
Send /help
to get assistance with trading commands, account management, security features, and market data.
BarkBOT integrates with Solana's Jupiter swap aggregator via its public API. This allows for optimized token swaps within the bot.
- Public API: https://quote-api.jup.ag/v6
- Platform Fee: 0.2% on all swaps created with the API
- Rate Limits: Up to 10 requests/sec with 80ms latency or faster
For more information on rate limits and scaling options, please consult the Jupiter API documentation
Contributions are welcome! Please fork the repository and create a pull request with your changes. Ensure that your code adheres to the existing style and passes all tests.
The MIT License. See the LICENSE file for more details.