Core Features

DCA (Dollar Cost Averaging)

Parameters:

  • token: Token symbol (e.g., SOL, USDC).

  • amount: Amount to buy per interval.

  • interval: Time interval (in seconds/minutes/hours).

  • slippage: Max allowable slippage.

How it works:

  1. Connects to Jupiter Aggregator API.

  2. At each interval, fetches the current token price.

  3. Executes a buy order through a DEX.

  4. Logs the transaction and updates the GUI.

def start_dca(token: str, amount: float, interval: int, slippage: float):
    while True:
        price = jupiter.get_price(token)
        execute_buy(token, amount, slippage)
        time.sleep(interval)

DEX/CEX Arbitrage

Scans for price differences between DEXs (Raydium, Orca) and CEXs (Binance) and automatically performs arbitrage trades.

Parameters:

  • exchanges: List of exchanges (default: all).

  • min_spread: Minimum percent price difference to trigger.

  • max_slippage: Max allowable slippage.

How it works:

  1. Fetches price feeds via WebSocket and REST.

  2. Calculates spread: spread = (price_cex - price_dex) / price_dex * 100

  3. If spread >= min_spread, performs arbitrage.

def monitor_arbitrage(min_spread: float):
    while True:
        prices = get_prices()
        for pair in prices:
            spread = calc_spread(prices[pair])
            if spread >= min_spread:
                execute_arbitrage_trade(pair)

Whale Copying

Monitors large wallets (>$500K volume) and copies their trades.

Parameters:

  • min_volume: Minimum transaction volume to track.

  • wallets_whitelist: Optional trusted wallet list.

  • token_filter: Token filters (e.g., SOL, JTO only).

How it works:

  1. Scans Mempool and blockchain for large wallet activity.

  2. Applies filters and thresholds.

  3. Replicates the trade if criteria are met.

def follow_whales(min_volume: float):
    while True:
        txs = mempool.get_verified_whale_transactions()
        for tx in txs:
            if tx.volume >= min_volume:
                mirror_transaction(tx)

Telegram Control

Telegram bot enables remote strategy control and notifications.

Commands:

  • /start_dca SOL 10 3600

  • /start_arbitrage

  • /copy_whales

  • /stop

  • /status

How it works:

  1. Uses Telegram Bot API to listen for commands.

  2. Translates commands into internal actions.

  3. Sends real-time logs and alerts.

@bot.message_handler(commands=['start_dca'])
def handle_start_dca(message):
    params = parse_message(message.text)
    start_dca(*params)

MEV Protection

Built-in Turbo and Secure modes protect against sandwich and front-running attacks.

Modes:

  • Turbo: Max speed, minimum latency.

  • Secure: Slower execution with private RPC protection.

Mechanisms:

  • Uses private RPC for transaction broadcasting.

  • TimeLock or delayed execution to obscure intent.

  • Scans mempool for attack patterns.

def secure_send(tx):
    if detect_front_run_risk(tx):
        abort()
    else:
        send_via_private_rpc(tx)

Last updated