An autonomous Solana trading intelligence system β sniff alpha, execute trades, and control everything through Telegram.
AshBorn Core is a fully autonomous, multi-threaded Python trading bot built for the Solana ecosystem. It continuously sniffs for emerging token opportunities, evaluates alpha signals through an intelligent brain loop, and executes trades β all while being remotely controllable via a Telegram interface or a local command file. Designed for low-latency, always-on operation with clean separation of concerns across its bot, sniffer, and utility layers.
- Continuously monitors the Solana network for new and trending token activity
- Runs on a dedicated async event loop for non-blocking, real-time performance
- Configurable scan intervals and token filters
- Background task scheduler that evaluates alpha signals from the sniffer
- Applies configurable logic to determine buy/sell/hold decisions
- Runs co-located on the same async loop as the sniffer for tight integration
- Full bot interface via
python-telegram-botfor remote command execution - Issue trade commands, query status, and monitor activity from anywhere
- Runs in its own daemon thread β always listening, never blocking
- Monitors
command.txtin real time for direct trade instructions - Simple human-readable format: e.g.,
BUY USDC 0.2 - Useful for local testing, scripting, or fallback control
- Runs as the main thread's blocking loop
- Powered by
loguruwith configurable log levels via.env - Colour-coded console output via
colorama - Log files stored under the
logs/directory
- Dedicated
testnet/directory for safe strategy testing before going live - Swap between mainnet and testnet via environment config
| Category | Technology |
|---|---|
| Language | Python 3.11+ |
| Async Runtime | asyncio + threading |
| Telegram Interface | python-telegram-bot 20.7 |
| HTTP Client | httpx 0.25 + requests 2.32 |
| Scheduling | APScheduler 3.6 |
| Logging | loguru 0.7 |
| Configuration | python-dotenv |
| Console Output | colorama |
AshBorn-Core/
βββ main.py # Boot sequence β wires all threads together
βββ command.txt # Local trade command interface (e.g. BUY USDC 0.2)
βββ requirements.txt # Python dependencies
βββ .env # Environment config (API keys, bot token, log level)
β
βββ bot/
β βββ brain.py # π§ Alpha evaluation & background task scheduler
β βββ telegram_bot.py # π² Telegram polling bot
β βββ realtime.py # ποΈ command.txt file watcher
β
βββ sniffers/
β βββ alpha_sniffer.py # π Solana token discovery loop
β
βββ config/ # Configuration files and constants
βββ data/ # Persistent trade/signal data
βββ wallets/ # Wallet management utilities
βββ utils/ # Shared helper functions
βββ scripts/ # Standalone utility scripts
βββ testnet/ # Testnet environment for safe testing
βββ logs/ # Runtime log files
βββ archives/ # Historical trade archives
AshBorn Core runs three concurrent execution paths from a single main() boot sequence:
main()
βββ Thread 1 β TelegramThread β python-telegram-bot polling (daemon)
βββ Thread 2 β SnifferThread β asyncio event loop (daemon)
β βββ Brain background tasks (launch_background_tasks)
β βββ Alpha sniffer loop (start_sniffer_loop)
βββ Main Thread β command.txt watcher (blocking loop)
The sniffer and brain intentionally share the same asyncio event loop β this keeps token signal evaluation tightly coupled with discovery without the overhead of inter-thread queues.
Python 3.11+
A Solana wallet with funded keypair
A Telegram Bot token (via @BotFather)# Clone the repository
git clone https://github.com/AshBornCommander/AshBorn-Core.git
cd AshBorn-Core
# Install dependencies
pip install -r requirements.txtCreate a .env file in the project root:
BOT_NAME=AshBorn
LOG_LEVEL=INFO
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
WALLET_PRIVATE_KEY=your_wallet_private_key
β οΈ Never commit your.envfile. It is listed in.gitignore.
python main.pyYou'll see the boot banner:
π€ [AshBorn] is waking up at 2026-04-13T09:00:00 β¦
| Command | Description |
|---|---|
/status |
Check bot health and active threads |
/buy <token> <amount> |
Execute a buy order |
/sell <token> <amount> |
Execute a sell order |
/sniff |
Manually trigger alpha scan |
/log |
View recent activity log |
Write a trade command directly into command.txt and the watcher will execute it:
BUY USDC 0.2
SELL SOL 1.5
- Wallet private keys are loaded exclusively from environment variables β never hardcoded
- The
.gitignoreexcludes all.envfiles, wallet files, and log outputs - The
wallets/directory is not committed to version control - Testnet mode is recommended for all strategy development and testing
- Multi-wallet support
- Webhook-based Telegram interface (replace polling)
- On-chain position tracking dashboard
- Strategy plugin architecture
- Docker containerisation for cloud deployment
- Automated stop-loss / take-profit logic
Pavan Kumar Malladi Data Engineer & Systems Developer Phoenix, Arizona
- GitHub: @AshBornCommander
- Email: pavankumarmalladi7@gmail.com
This project is licensed under the MIT License.
Built for speed, autonomy, and precision β AshBorn never sleeps. β‘