Services Approach Projects Back to Home
Project · Open Source

hades-ps-trader

A post-graduation trading bot built around the MACD indicator. Each newly graduated pump.fun token spawns its own trading session, with candles aggregated from direct pool polling and signal-driven entries and exits managed concurrently across multiple positions.

Rust 1.85+ Edition 2024 PumpSwap MACD PumpPortal

Overview

hades-ps-trader listens to pump.fun graduation events via PumpPortal's WebSocket, opens an isolated trading session per graduating token, and runs a MACD strategy against price candles built locally from direct PumpSwap pool polling. Buy and sell transactions are signed locally and submitted through PumpPortal — no third-party custody. Multiple sessions run concurrently, capped by configured position limits, and slippage is escalated automatically on tx failure.

Key Features

  • Real-time graduation monitoring via PumpPortal.
  • Per-token MACD sessions with configurable fast / slow / signal parameters.
  • Candle aggregation built directly from PumpSwap pool price polling — no external data feed.
  • Concurrent position management with a configurable cap on open trades.
  • Slippage escalation on failed transactions — retries climb the slippage ladder.
  • Locally signed transactions via the PumpPortal API.
  • Optional Discord webhook notifications for entries, exits, and session lifecycle events.
  • Optional on-chain trading filters applied at the moment of graduation.

Requirements

  • Rust 1.85+ with edition 2024.
  • Solana mainnet RPC endpoint (QuickNode, Helius, or similar).
  • Funded Solana wallet (keypair JSON format).
  • PumpPortal API key (optional but recommended).
  • Discord webhook URL (optional).

Setup

1. Clone and build

~/install
$ git clone https://github.com/hadesbaker/hades-ps-trader.git $ cd hades-ps-trader $ cp .env.example .env $ cargo build --release

2. Configure

Set your RPC endpoint, wallet keypair path, and optional PumpPortal API key in .env. Tune your MACD parameters, position sizing, slippage tolerance, priority fees, and on-chain filter thresholds in the bot config.

3. Run

~/run
$ cargo run --release
This software moves real money. Provided for educational purposes only with explicit warnings about total loss potential and lack of warranty. Begin with the smallest position sizes that exercise the codepath end-to-end.