<?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: GainAlgo</title>
    <description>The latest articles on DEV Community by GainAlgo (@gainalgo).</description>
    <link>https://dev.to/gainalgo</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%2F3999504%2Ffbae53d3-4386-4868-b446-d268bd44b9a9.jpg</url>
      <title>DEV Community: GainAlgo</title>
      <link>https://dev.to/gainalgo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gainalgo"/>
    <language>en</language>
    <item>
      <title>I built an open-source crypto trading bot that runs 4 exchanges from one server</title>
      <dc:creator>GainAlgo</dc:creator>
      <pubDate>Tue, 23 Jun 2026 22:50:55 +0000</pubDate>
      <link>https://dev.to/gainalgo/i-built-an-open-source-crypto-trading-bot-that-runs-4-exchanges-from-one-server-47c1</link>
      <guid>https://dev.to/gainalgo/i-built-an-open-source-crypto-trading-bot-that-runs-4-exchanges-from-one-server-47c1</guid>
      <description>&lt;p&gt;&lt;strong&gt;GainAlgo&lt;/strong&gt; is an MIT-licensed crypto trading bot I've been building. The latest update lets it manage &lt;strong&gt;four exchanges from a single server and one dashboard&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Exchange&lt;/th&gt;
&lt;th&gt;Futures (USDT-M)&lt;/th&gt;
&lt;th&gt;Spot&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Binance&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bybit&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Upbit&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bithumb&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's 2 futures + 4 spot markets, all in one process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honesty first: it's not a money machine
&lt;/h2&gt;

&lt;p&gt;On its own, the bot is roughly break-even. I think of it as tilling the field and standing guard 24/7 — the human still does the final harvest. Defaults are deliberately safe: every engine &lt;strong&gt;off&lt;/strong&gt;, &lt;strong&gt;paper&lt;/strong&gt; mode, single server. Live trading is an explicit, per-exchange opt-in.&lt;/p&gt;

&lt;p&gt;If you came for "wake up to money piling up," this isn't that. It's a framework you tune — together.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why one server?
&lt;/h2&gt;

&lt;p&gt;Running a separate bot per exchange means juggling windows and duplicated infra. GainAlgo keeps them in one place but &lt;strong&gt;fully isolated&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Capital&lt;/strong&gt; — one exchange's balance/positions never leak into another's sizing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Records&lt;/strong&gt; — trade journals, daily P&amp;amp;L, and gate stats are kept per-exchange.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Settings&lt;/strong&gt; — entry/exit configs are tuned independently per exchange.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One screen, zero cross-contamination.&lt;/p&gt;

&lt;h2&gt;
  
  
  What shipping multi-exchange taught me
&lt;/h2&gt;

&lt;p&gt;Before open-sourcing the latest work, I ran a &lt;strong&gt;multi-agent adversarial audit&lt;/strong&gt; over the code and fixed what it surfaced:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a paper-mode path that still queried the &lt;strong&gt;live&lt;/strong&gt; account,&lt;/li&gt;
&lt;li&gt;missing &lt;strong&gt;order idempotency&lt;/strong&gt; (a retry could double-fill),&lt;/li&gt;
&lt;li&gt;per-exchange record files that could &lt;strong&gt;overwrite&lt;/strong&gt; each other.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Small bot, but I'd rather knock on the bridge before crossing it.&lt;/p&gt;

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

&lt;p&gt;git clone &lt;a href="https://github.com/gainalgo/nunnaya" rel="noopener noreferrer"&gt;https://github.com/gainalgo/nunnaya&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Copy &lt;code&gt;.env.example&lt;/code&gt; → &lt;code&gt;.env&lt;/code&gt;, fill only the exchange keys you use (withdrawal permission &lt;strong&gt;off&lt;/strong&gt;), and run. It boots in paper mode by default — observe first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Contribute
&lt;/h2&gt;

&lt;p&gt;This is a community project — the whole point is finding good configs together. Issues, PRs, and honest teardowns are welcome.&lt;br&gt;
⭐ Repo: &lt;a href="https://github.com/gainalgo/nunnaya" rel="noopener noreferrer"&gt;https://github.com/gainalgo/nunnaya&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>python</category>
      <category>cryptocurrency</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
