<?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: rkang30</title>
    <description>The latest articles on DEV Community by rkang30 (@rkang30).</description>
    <link>https://dev.to/rkang30</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F212795%2F74c3a50f-b621-4962-8985-4f4fe933676d.png</url>
      <title>DEV Community: rkang30</title>
      <link>https://dev.to/rkang30</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rkang30"/>
    <language>en</language>
    <item>
      <title>I built a free, open-source trading bot starter (Next.js)</title>
      <dc:creator>rkang30</dc:creator>
      <pubDate>Thu, 13 Aug 2026 21:39:00 +0000</pubDate>
      <link>https://dev.to/rkang30/i-built-a-free-open-source-trading-bot-starter-nextjs-1m9n</link>
      <guid>https://dev.to/rkang30/i-built-a-free-open-source-trading-bot-starter-nextjs-1m9n</guid>
      <description>&lt;p&gt;A minimal, open-source trading bot built on the Picckles Signals API — a read-only REST API for stock trading signals. It's Next.js (App Router) + TypeScript, and deploys to Vercel with a daily cron out of the box.&lt;/p&gt;

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

&lt;p&gt;The bot runs on a daily tick that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Checks the API for SELL/HOLD decisions on any open positions&lt;/li&gt;
&lt;li&gt;Pulls today's BUY signals, sized to your budget&lt;/li&gt;
&lt;li&gt;Persists state to Upstash Redis&lt;/li&gt;
&lt;li&gt;Shows everything on a dashboard — open positions, trade history, and a manual run trigger&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It ships in &lt;strong&gt;paper-trading mode by default&lt;/strong&gt;. Wiring up a real broker is a single function — &lt;code&gt;placeOrder&lt;/code&gt; in &lt;code&gt;src/lib/bot.ts&lt;/code&gt; — everything else stays the same.&lt;/p&gt;

&lt;h2&gt;
  
  
  The signals
&lt;/h2&gt;

&lt;p&gt;Two strategies are available out of the box:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;double7-guarded&lt;/code&gt; (default) — buys strong uptrends on short-term lows, with a VIX-based crash filter. Typical hold: 2–3 weeks.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;rs-pullback&lt;/code&gt; — buys relative-strength leaders during fast dips. Typical hold: 2–5 days.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Signals are the same for every subscriber on a given plan — no personalization, nothing account-specific, just "here's what the strategy says to do today":&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\&lt;/code&gt;&lt;code&gt;javascript&lt;br&gt;
const res = await fetch(&lt;br&gt;
  "https://picckles.com/api/v1/signals/double7-guarded?budget=200",&lt;br&gt;
  { headers: { Authorization:&lt;/code&gt;Bearer ${KEY}` } }&lt;br&gt;
);&lt;br&gt;
const feed = await res.json();&lt;/p&gt;

&lt;p&gt;for (const s of feed.entries) {&lt;br&gt;
  console.log(&lt;code&gt;BUY ${s.suggestedQuantity} ${s.symbol} @ ~$${s.price}&lt;/code&gt;);&lt;br&gt;
}&lt;br&gt;
`&lt;code&gt;\&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;I've been trading these strategies on my own account and wanted something a developer could clone and have paper-trading running in a few minutes — without writing their own signal generation, position sizing, or scheduling from scratch.&lt;/p&gt;

&lt;p&gt;Setup needs a Picckles API key (free tier available) and an Upstash Redis instance — that's it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Repo: &lt;a href="https://github.com/rkang30/open-trade-bot" rel="noopener noreferrer"&gt;https://github.com/rkang30/open-trade-bot&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;API docs: &lt;a href="https://picckles.com/api-docs" rel="noopener noreferrer"&gt;https://picckles.com/api-docs&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Would love feedback on the architecture, or holes in the strategies themselves — happy to answer questions in the comments.&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>opensource</category>
      <category>typescript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
