<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Boti</title>
    <description>The latest articles on Forem by Boti (@solsniperdev).</description>
    <link>https://forem.com/solsniperdev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3774437%2F39a032ac-9c1c-4767-8cf5-5572b497e621.png</url>
      <title>Forem: Boti</title>
      <link>https://forem.com/solsniperdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/solsniperdev"/>
    <language>en</language>
    <item>
      <title>I built an open-source Solana trading bot on Telegram — here's what I learned</title>
      <dc:creator>Boti</dc:creator>
      <pubDate>Sun, 15 Feb 2026 20:28:20 +0000</pubDate>
      <link>https://forem.com/solsniperdev/i-built-an-open-source-solana-trading-bot-on-telegram-heres-what-i-learned-4dfj</link>
      <guid>https://forem.com/solsniperdev/i-built-an-open-source-solana-trading-bot-on-telegram-heres-what-i-learned-4dfj</guid>
      <description>&lt;p&gt;I recently built a Telegram trading bot for Solana from scratch using Node.js. It's fully open-source, and I wanted to share the architecture and lessons learned.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;The bot lets you trade any Solana token directly from Telegram:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Buy/sell tokens&lt;/strong&gt; by pasting a contract address&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real-time trending tokens&lt;/strong&gt; feed (powered by DexScreener API)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Portfolio tracking&lt;/strong&gt; with profit/loss calculations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wallet management&lt;/strong&gt; (non-custodial — users control their own keys)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Referral system&lt;/strong&gt; with fee sharing for growth&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Token analysis&lt;/strong&gt; with safety scores and momentum indicators&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Runtime:&lt;/strong&gt; Node.js&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Telegram API:&lt;/strong&gt; node-telegram-bot-api&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swap routing:&lt;/strong&gt; Jupiter Aggregator (lite-api.jup.ag) for best-price execution&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Market data:&lt;/strong&gt; DexScreener API (free, no auth required)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RPC:&lt;/strong&gt; Helius (free tier, 1M credits/month)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blockchain:&lt;/strong&gt; Solana web3.js for transaction building and signing&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Architecture Decisions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why Jupiter for swaps?
&lt;/h3&gt;

&lt;p&gt;Jupiter aggregates routes across all major Solana DEXes (Raydium, Orca, Meteora, etc.) and finds the best price. Their lite API is free and doesn't require authentication — perfect for a bot.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why DexScreener for market data?
&lt;/h3&gt;

&lt;p&gt;I initially tried using on-chain data directly via Helius, but the rate limits (10 RPS on free tier) made real-time monitoring impractical. DexScreener's API gives you price, volume, liquidity, and transaction counts — all for free.&lt;/p&gt;

&lt;h3&gt;
  
  
  Non-custodial wallet design
&lt;/h3&gt;

&lt;p&gt;Each user gets a Solana keypair generated locally. The private key is stored encrypted. Users can export their keys at any time. This is critical for trust — nobody wants to deposit funds into a bot they can't verify.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Memecoin sniping is negative EV
&lt;/h3&gt;

&lt;p&gt;I spent time building a token sniper that would auto-buy newly graduated pump.fun tokens. After analysis:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Win rate: ~6.5%&lt;/li&gt;
&lt;li&gt;Average loss per trade: -0.03%&lt;/li&gt;
&lt;li&gt;The buy/sell spread alone (~2%) eats any potential profit&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Conclusion:&lt;/strong&gt; Blind sniping doesn't work. You need sophisticated filtering to be profitable.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Circular arbitrage on major pairs is dead
&lt;/h3&gt;

&lt;p&gt;SOL → USDC → USDT → SOL arbitrage returns ~0.01% — not enough to cover transaction fees.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. DexScreener is underrated for builders
&lt;/h3&gt;

&lt;p&gt;Their free API provides everything you need for a trading bot: token profiles, pair data, trending tokens, and boost information. No API key needed.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Jupiter's fee sharing is a real business model
&lt;/h3&gt;

&lt;p&gt;Jupiter offers 50-255 bps fee sharing for integrators. A trading bot can charge 0.5% per swap and earn sustainable revenue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Revenue Model
&lt;/h2&gt;

&lt;p&gt;The bot charges a 0.5% fee on each swap. The referral system gives users 20% of fees from people they refer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it / Contribute
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bot:&lt;/strong&gt; &lt;a href="https://t.me/finaal_bot" rel="noopener noreferrer"&gt;@finaal_bot on Telegram&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Source code:&lt;/strong&gt; &lt;a href="https://github.com/botifinal0/solsniper-bot" rel="noopener noreferrer"&gt;github.com/botifinal0/solsniper-bot&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd love feedback from anyone building in the Solana/DeFi space. What features would make this more useful?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built with Node.js, Jupiter, DexScreener, and Helius. MIT licensed.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>web3</category>
      <category>opensource</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
