explaingit

trdx/solana-trading-bot

Analysis updated 2026-05-18

80TypeScriptAudience · generalComplexity · 4/5Setup · hard

TLDR

A TypeScript trading bot that automatically buys newly listed Solana tokens and sells them at a set profit or loss target.

Mindmap

mindmap
  root((trading bot))
    What it does
      Snipe new tokens
      Auto buy and sell
      Safety filters
    Tech stack
      TypeScript
      Node.js
      Solana RPC
    Use cases
      Trade Raydium pools
      Trade pump.fun launches
      Automate exits
    Audience
      Crypto traders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically buy newly listed tokens on Raydium or pump.fun as soon as they appear

USE CASE 2

Apply configurable safety filters to avoid obvious rug-pull tokens before buying

USE CASE 3

Automatically sell a position once a take-profit or stop-loss threshold is hit

USE CASE 4

Choose between standard RPC, warp.id relay, or Jito bundles for faster transaction inclusion

What is it built with?

TypeScriptNode.jsSolana

How does it compare?

trdx/solana-trading-botdesktop-hermes/hermes-agent-desktopjapp-fi/polymarket-mcp-server
Stars808179
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyhardmoderatemoderate
Complexity4/52/53/5
Audiencegeneralvibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires a funded Solana wallet and a paid RPC provider, the README warns of high risk of total loss.

License is not specified in the description.

In plain English

This is an automated trading bot for the Solana blockchain, written in TypeScript. Its purpose is "sniping", catching newly-listed tokens as early as possible and buying them automatically, then selling once a profit target or loss limit is reached. The bot monitors two decentralized exchanges: Raydium AMM v4 (a popular Solana trading venue) and pump.fun (a platform for launching memecoins). It watches for new liquidity pools or new token launches in real time using WebSocket connections to a Solana RPC node. When a qualifying new token appears, it checks a set of configurable safety filters, things like whether the creator still controls the token supply (a warning sign) or whether the liquidity has been "burned" to prevent a rug pull. If the token passes, the bot immediately places a buy order. It then monitors the price and automatically sells when either the take-profit percentage or stop-loss percentage is hit. Three transaction submission strategies are supported: a standard RPC call, the warp.id bundled relay, and Jito bundles (a Solana mechanism for getting transactions included faster by paying block producers directly). You configure everything via environment variables: which exchange to target, how much to spend per trade, slippage tolerance, profit and loss thresholds, and which filters to apply. It requires Node.js 18 or newer plus a funded Solana wallet and a paid RPC provider for reliable performance. This is high-risk speculative tooling, the README explicitly warns of frequent total loss.

Copy-paste prompts

Prompt 1
Help me configure trdx's solana-trading-bot with my take-profit and stop-loss thresholds
Prompt 2
Explain the safety filters this bot uses to avoid rug-pull tokens before buying
Prompt 3
Show me how to set up a Solana wallet and RPC provider to run this trading bot
Prompt 4
Walk me through the difference between the RPC, warp.id, and Jito submission strategies in this bot

Frequently asked questions

What is solana-trading-bot?

A TypeScript trading bot that automatically buys newly listed Solana tokens and sells them at a set profit or loss target.

What language is solana-trading-bot written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, Solana.

What license does solana-trading-bot use?

License is not specified in the description.

How hard is solana-trading-bot to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is solana-trading-bot for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.