Skip to content

BarkBOT is an advanced trading assistant designed to facilitate efficient and secure trading of BARK tokens on the Solana blockchain. Leveraging the Telegram platform, BarkBOT offers a seamless and intuitive interface for users to execute trades, track their performance, and receive real-time notifications and analytics.

Notifications You must be signed in to change notification settings

bark-community/bark-trading-bot

Repository files navigation

BarkBOT

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.

Key Features

  1. Jupiter Swap API Integration: Leverage the Jupiter Swap API for optimal 2022-token swaps.
  2. Automatic Buying: Easily purchase BARK tokens by pasting the token address.
  3. Referral Rewards: Generate referral links and earn rewards from referred users.
  4. PNL Tracking: Monitor your profit and loss with detailed analytics.
  5. Enhanced Security: Secure your account with two-factor authentication (2FA).
  6. Transaction Fees Utilization: Use transaction fees for BARK token buyback, charity, donations, and governance voting.
  7. Solana Wallet Management: Generate new wallets, check balances, transfer SOL and BARK tokens, and export private keys.
  8. Price Alerts: Set and receive price alerts for BARK tokens.
  9. User Profile Management: View and update your user profile.
  10. Custom Notifications: Set notifications for various events.
  11. Advanced Settings: Customize RPC, slippage, and transaction priority.
  12. Interactive User Interface: Intuitive navigation with inline keyboards.
  13. Detailed Token Information: View token details before purchasing.
  14. Market Data: Access real-time market data and trends.
  15. Transaction History Pagination: View transaction history with pagination.
  16. User Authentication: Secure user authentication and verification.
  17. Custom Commands: Easily manage commands with a custom command system.
  18. Secure Data Storage: Encrypt and securely store sensitive user data.
  19. Comprehensive Help Command: Interactive help with buttons for different topics.

Installation Instructions

Prerequisites

  • Python 3.12 or higher
  • pip (Python package installer)
  • A Telegram account

Step-by-Step Installation

  1. Clone the Repository

    git clone https://github.com/bark-community/bark-trading-bot.git
    cd bar-trading-kbot
  2. Create and Activate a Virtual Environment

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install Dependencies

    pip install -r requirements.txt
  4. 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'

  5. Run the Bot

    python bot.py

Usage

Starting the Bot

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.

Verifying Your Account

To ensure security, verify your account by sending /verify. You will be prompted to provide your email for verification.

Buying Tokens

Send 💰 Buy and paste the token address to purchase BARK tokens. Confirm the token information before proceeding with the purchase.

Refreshing Balance

Send 🔄 Refresh to update and view your current SOL and BARK balances.

Wallet Management

Send 🏦 Wallet to access options for withdrawing SOL or BARK tokens, or exporting your private key.

Settings

Send ⚙️ Settings to customize your RPC, slippage, and transaction priority.

Dashboard

Send 📊 Dashboard to view an overview of your trading performance, including PNL, total volume, win/loss ratio, and recent transactions.

Market Data

Send 📈 Market Data to access the latest market data, including price, volume, market cap, and 24-hour change.

Help

Send /help to get assistance with trading commands, account management, security features, and market data.

Jupiter Swap API Integration

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

Contributing

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.

Documentation

License

The MIT License. See the LICENSE file for more details.

About

BarkBOT is an advanced trading assistant designed to facilitate efficient and secure trading of BARK tokens on the Solana blockchain. Leveraging the Telegram platform, BarkBOT offers a seamless and intuitive interface for users to execute trades, track their performance, and receive real-time notifications and analytics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages