<?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: Harrier</title>
    <description>The latest articles on DEV Community by Harrier (@harrieronchain).</description>
    <link>https://dev.to/harrieronchain</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%2F1648131%2Fe2157fcf-aca9-407f-8275-ee7cfb716d62.jpg</url>
      <title>DEV Community: Harrier</title>
      <link>https://dev.to/harrieronchain</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harrieronchain"/>
    <language>en</language>
    <item>
      <title>I built an open-source market maker for prediction markets (Polymarket/CLOB) — here's how it works</title>
      <dc:creator>Harrier</dc:creator>
      <pubDate>Fri, 19 Jun 2026 15:16:29 +0000</pubDate>
      <link>https://dev.to/harrieronchain/i-built-an-open-source-market-maker-for-prediction-markets-polymarketclob-heres-how-it-works-5aam</link>
      <guid>https://dev.to/harrieronchain/i-built-an-open-source-market-maker-for-prediction-markets-polymarketclob-heres-how-it-works-5aam</guid>
      <description>&lt;p&gt;Hey everyone,&lt;/p&gt;

&lt;p&gt;I've been deep in prediction market infrastructure for a while and just open-sourced a market maker bot designed for CLOB-based prediction markets like Polymarket.&lt;/p&gt;

&lt;p&gt;What it does:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Quotes both sides of a binary market automatically&lt;/li&gt;
&lt;li&gt;Adjusts spreads based on order book depth and volatility&lt;/li&gt;
&lt;li&gt;Manages inventory risk to avoid getting stuck on the wrong side of a resolved market&lt;/li&gt;
&lt;li&gt;Built on top of Polymarket's CLOB API with Gnosis Safe / EOA wallet support on Polygon&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The core challenge with prediction markets vs. regular markets:&lt;/p&gt;

&lt;p&gt;Normal market making is about capturing spread. Prediction markets add a brutal edge case — resolution risk. If you're holding YES at 0.6 and the market resolves NO, you're not just down on the spread, you're down the full position. So the bot has to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Track time-to-resolution and widen spreads as resolution approaches&lt;/li&gt;
&lt;li&gt;Reduce inventory exposure on markets with high directional momentum&lt;/li&gt;
&lt;li&gt;Use FAK orders to avoid resting limit orders too long near resolution&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rust&lt;/li&gt;
&lt;li&gt;Polymarket CLOB API&lt;/li&gt;
&lt;li&gt;Polygon (USDC settlement)&lt;/li&gt;
&lt;li&gt;SQLite for order state tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What's next:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Dynamic spread model based on implied volatility&lt;/li&gt;
&lt;li&gt;Multi-market portfolio rebalancing&lt;/li&gt;
&lt;li&gt;Better signal integration (news feeds, oracle data)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/HarrierOnChain/Prediction-Markets-Trading-Bot-Toolkits" rel="noopener noreferrer"&gt;https://github.com/HarrierOnChain/Prediction-Markets-Trading-Bot-Toolkits&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions on the architecture, risk model, or anything CLOB-related. Always looking for feedback from others building in this space.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>blockchain</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
