<?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>DEV Community: Lucas Gragg</title>
    <description>The latest articles on DEV Community by Lucas Gragg (@lucas_gragg_9ca9e7f95852f).</description>
    <link>https://dev.to/lucas_gragg_9ca9e7f95852f</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%2F3862895%2Ff02e5416-5721-4770-ab0e-f37be41cd534.jpg</url>
      <title>DEV Community: Lucas Gragg</title>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lucas_gragg_9ca9e7f95852f"/>
    <language>en</language>
    <item>
      <title>Auto-generate thread content with Groq</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Mon, 04 May 2026 14:09:07 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/auto-generate-thread-content-with-groq-1ipc</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/auto-generate-thread-content-with-groq-1ipc</guid>
      <description>&lt;p&gt;Packaged social media scheduler this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Schedule and auto-publish posts across Twitter, Reddit, and other platforms from a single dashboard. Grow your audience on autopilot with queue management, optimal timing, and content recycling.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Multi-platform posting (Twitter, Reddit, LinkedIn)&lt;/li&gt;
&lt;li&gt;Visual content calendar and queue management&lt;/li&gt;
&lt;li&gt;Optimal posting time suggestions based on engagement&lt;/li&gt;
&lt;li&gt;Content recycling and evergreen post rotation&lt;/li&gt;
&lt;li&gt;Analytics dashboard with engagement tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/social-media-scheduler?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;Social Media Scheduler&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>sidehustle</category>
      <category>indiehackers</category>
    </item>
    <item>
      <title>Building an Amazon price tracker (no API needed)</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Sun, 03 May 2026 14:08:59 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/building-an-amazon-price-tracker-no-api-needed-4467</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/building-an-amazon-price-tracker-no-api-needed-4467</guid>
      <description>&lt;p&gt;Packaged amazon price tracker this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Track prices on Amazon products and get notified the instant they drop below your target. Supports wishlists, price history charts, and daily digest emails so you never overpay again.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Real-time Amazon price monitoring&lt;/li&gt;
&lt;li&gt;Custom price drop alerts via email and Telegram&lt;/li&gt;
&lt;li&gt;Price history charts and trend analysis&lt;/li&gt;
&lt;li&gt;Wishlist import and bulk product tracking&lt;/li&gt;
&lt;li&gt;Daily digest with biggest price drops&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/amazon-price-tracker?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;Amazon Price Tracker&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>sidehustle</category>
      <category>showdev</category>
    </item>
    <item>
      <title>My 8-bot autonomous trading fleet (open source components)</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Sat, 02 May 2026 14:08:48 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/my-8-bot-autonomous-trading-fleet-open-source-components-508l</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/my-8-bot-autonomous-trading-fleet-open-source-components-508l</guid>
      <description>&lt;p&gt;Packaged complete trading bot suite (all bots + agent + dashboard) this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Everything in one package. All trading bots + Telegram agent + master dashboard. Trade on perps, prediction markets, CEX, DEX, and meme coins -- all managed from your phone via Telegram.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;All trading bots included&lt;/li&gt;
&lt;li&gt;Telegram management agent&lt;/li&gt;
&lt;li&gt;Master dashboard&lt;/li&gt;
&lt;li&gt;Start/stop scripts&lt;/li&gt;
&lt;li&gt;Full documentation&lt;/li&gt;
&lt;li&gt;Setup guide&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/full-trading-suite?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;Complete Trading Bot Suite (All Bots + Agent + Dashboard)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>algotrading</category>
      <category>crypto</category>
    </item>
    <item>
      <title>Portfolio value tracker with PnL calculation</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Fri, 01 May 2026 14:08:38 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/portfolio-value-tracker-with-pnl-calculation-56nh</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/portfolio-value-tracker-with-pnl-calculation-56nh</guid>
      <description>&lt;p&gt;Packaged crypto price alert bot this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Never miss a price move again. Set custom alerts for any cryptocurrency across major exchanges and get instant notifications via Telegram, email, or Discord when your targets hit.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Real-time price monitoring across 10+ exchanges&lt;/li&gt;
&lt;li&gt;Custom alert conditions (above, below, percent change)&lt;/li&gt;
&lt;li&gt;Telegram, Discord, and email notifications&lt;/li&gt;
&lt;li&gt;Portfolio watchlist with live price tracking&lt;/li&gt;
&lt;li&gt;Historical alert log and price snapshots&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/crypto-price-alert?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;Crypto Price Alert Bot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>algotrading</category>
      <category>crypto</category>
    </item>
    <item>
      <title>Batch article generation at $0.00/post</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Thu, 30 Apr 2026 14:08:29 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/batch-article-generation-at-000post-2g2f</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/batch-article-generation-at-000post-2g2f</guid>
      <description>&lt;p&gt;Packaged ai content writer this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Generate high-quality blog posts, product descriptions, social media captions, and marketing copy powered by LLM APIs. Includes templates for 20+ content types with tone and style customization.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;20+ content templates (blogs, ads, emails, social)&lt;/li&gt;
&lt;li&gt;Multiple LLM backend support (OpenAI, Groq, Anthropic)&lt;/li&gt;
&lt;li&gt;Tone and style customization per template&lt;/li&gt;
&lt;li&gt;Bulk content generation with CSV input&lt;/li&gt;
&lt;li&gt;SEO keyword integration and readability scoring&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/ai-content-writer?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;AI Content Writer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>showdev</category>
      <category>sidehustle</category>
    </item>
    <item>
      <title>Solana vs Ethereum trading bot architecture</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Wed, 29 Apr 2026 14:08:19 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/solana-vs-ethereum-trading-bot-architecture-1go0</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/solana-vs-ethereum-trading-bot-architecture-1go0</guid>
      <description>&lt;p&gt;Packaged multi-chain dex trading bot (8 chains) this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Trade on 8 blockchain networks from one bot. Supports Ethereum (Uniswap), Solana (Jupiter), BSC (PancakeSwap), Polygon (QuickSwap), Arbitrum (SushiSwap), Optimism (Velodrome), Avalanche (TraderJoe), and Cronos (VVS).&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;8 blockchain networks&lt;/li&gt;
&lt;li&gt;8 DEX integrations&lt;/li&gt;
&lt;li&gt;Token sniping and trading&lt;/li&gt;
&lt;li&gt;Gas optimization&lt;/li&gt;
&lt;li&gt;Multi-wallet support&lt;/li&gt;
&lt;li&gt;Web dashboard&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/multi-chain-dex-bot?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;Multi-Chain DEX Trading Bot (8 Chains)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>algotrading</category>
      <category>crypto</category>
    </item>
    <item>
      <title>5 crypto trading strategies every bot needs (with code)</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Tue, 28 Apr 2026 14:08:11 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/5-crypto-trading-strategies-every-bot-needs-with-code-4991</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/5-crypto-trading-strategies-every-bot-needs-with-code-4991</guid>
      <description>&lt;p&gt;Packaged crypto exchange trading bot (python) this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Production-ready Python trading bot for any crypto exchange. Supports Binance, Bybit, Crypto.com, Coinbase via ccxt. Includes 5 strategies (Scalp, Swing, Grid, DCA, Sniper), real-time dashboard, stop-loss/take-profit, and Telegram alerts. Plug in your API keys and start trading.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;5 trading strategies included&lt;/li&gt;
&lt;li&gt;Real-time web dashboard&lt;/li&gt;
&lt;li&gt;Telegram notifications&lt;/li&gt;
&lt;li&gt;Multi-exchange support via ccxt&lt;/li&gt;
&lt;li&gt;Risk management (SL/TP/trailing)&lt;/li&gt;
&lt;li&gt;Position sizing and portfolio tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/crypto-exchange-bot?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;Crypto Exchange Trading Bot (Python)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>algotrading</category>
      <category>crypto</category>
    </item>
    <item>
      <title>Arbitrage between prediction markets with Python</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Mon, 27 Apr 2026 14:08:03 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/arbitrage-between-prediction-markets-with-python-40hd</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/arbitrage-between-prediction-markets-with-python-40hd</guid>
      <description>&lt;p&gt;Packaged kalshi/polymarket prediction market bot this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Automated prediction market trading bot. Scans Kalshi and Polymarket for mispriced events, calculates edge, and executes trades automatically. Includes position tracking, P&amp;amp;L dashboard, and Telegram alerts.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Kalshi API integration&lt;/li&gt;
&lt;li&gt;Polymarket support&lt;/li&gt;
&lt;li&gt;Edge detection algorithm&lt;/li&gt;
&lt;li&gt;Auto-entry with configurable filters&lt;/li&gt;
&lt;li&gt;Position management and exit logic&lt;/li&gt;
&lt;li&gt;Web dashboard with live P&amp;amp;L&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/prediction-market-bot?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;Kalshi/Polymarket Prediction Market Bot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>algotrading</category>
      <category>crypto</category>
    </item>
    <item>
      <title>Reddit sentiment analysis with Groq</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Sun, 26 Apr 2026 14:07:54 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/reddit-sentiment-analysis-with-groq-51pb</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/reddit-sentiment-analysis-with-groq-51pb</guid>
      <description>&lt;p&gt;Packaged reddit monitor bot this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Monitor any subreddit or keyword in real time and get instant alerts when relevant posts or comments appear. Ideal for brand monitoring, lead generation, competitor tracking, and trend discovery.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Real-time subreddit and keyword monitoring&lt;/li&gt;
&lt;li&gt;Configurable alert filters (score, flair, author)&lt;/li&gt;
&lt;li&gt;Telegram and Discord notification support&lt;/li&gt;
&lt;li&gt;Sentiment analysis on matched posts&lt;/li&gt;
&lt;li&gt;Export matched posts to CSV or database&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/reddit-monitor?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;Reddit Monitor Bot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>sidehustle</category>
      <category>indiehackers</category>
    </item>
    <item>
      <title>Lessons from 6 months of autonomous trading</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Sat, 25 Apr 2026 14:07:48 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/lessons-from-6-months-of-autonomous-trading-19fn</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/lessons-from-6-months-of-autonomous-trading-19fn</guid>
      <description>&lt;p&gt;Packaged complete trading bot suite (all bots + agent + dashboard) this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Everything in one package. All trading bots + Telegram agent + master dashboard. Trade on perps, prediction markets, CEX, DEX, and meme coins -- all managed from your phone via Telegram.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;All trading bots included&lt;/li&gt;
&lt;li&gt;Telegram management agent&lt;/li&gt;
&lt;li&gt;Master dashboard&lt;/li&gt;
&lt;li&gt;Start/stop scripts&lt;/li&gt;
&lt;li&gt;Full documentation&lt;/li&gt;
&lt;li&gt;Setup guide&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/full-trading-suite?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;Complete Trading Bot Suite (All Bots + Agent + Dashboard)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>algotrading</category>
      <category>crypto</category>
    </item>
    <item>
      <title>Twitter/X API v2 posting tutorial (2026)</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Fri, 24 Apr 2026 14:07:41 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/twitterx-api-v2-posting-tutorial-2026-3hfp</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/twitterx-api-v2-posting-tutorial-2026-3hfp</guid>
      <description>&lt;p&gt;Packaged social media scheduler this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Schedule and auto-publish posts across Twitter, Reddit, and other platforms from a single dashboard. Grow your audience on autopilot with queue management, optimal timing, and content recycling.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Multi-platform posting (Twitter, Reddit, LinkedIn)&lt;/li&gt;
&lt;li&gt;Visual content calendar and queue management&lt;/li&gt;
&lt;li&gt;Optimal posting time suggestions based on engagement&lt;/li&gt;
&lt;li&gt;Content recycling and evergreen post rotation&lt;/li&gt;
&lt;li&gt;Analytics dashboard with engagement tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/social-media-scheduler?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;Social Media Scheduler&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>sidehustle</category>
      <category>indiehackers</category>
    </item>
    <item>
      <title>Leverage trading math: position sizing for 5x perps</title>
      <dc:creator>Lucas Gragg</dc:creator>
      <pubDate>Thu, 23 Apr 2026 14:07:33 +0000</pubDate>
      <link>https://dev.to/lucas_gragg_9ca9e7f95852f/leverage-trading-math-position-sizing-for-5x-perps-3ip7</link>
      <guid>https://dev.to/lucas_gragg_9ca9e7f95852f/leverage-trading-math-position-sizing-for-5x-perps-3ip7</guid>
      <description>&lt;p&gt;Packaged hyperliquid perpetual futures trading bot this week after running it in production for ~60 days. Notes on what worked and what didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Leveraged perp futures trading bot for Hyperliquid DEX. Supports long and short positions, up to 50x leverage, with built-in risk management. Includes momentum, mean-reversion, and breakout strategies.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Hyperliquid DEX integration&lt;/li&gt;
&lt;li&gt;Long &amp;amp; short trading&lt;/li&gt;
&lt;li&gt;Configurable leverage (1-50x)&lt;/li&gt;
&lt;li&gt;3 built-in strategies&lt;/li&gt;
&lt;li&gt;Trailing stop-loss&lt;/li&gt;
&lt;li&gt;Web dashboard&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code sample
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic structure
&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scan&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want the full working version with all the battle-tested edge cases&lt;br&gt;
handled, I packaged it here: &lt;a href="https://lukegraggster.gumroad.com/l/hyperliquid-perp-bot?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=traffic_bot" rel="noopener noreferrer"&gt;Hyperliquid Perpetual Futures Trading Bot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>algotrading</category>
      <category>crypto</category>
    </item>
  </channel>
</rss>
