<?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: 0xTSR</title>
    <description>The latest articles on DEV Community by 0xTSR (@theshawshankredemption).</description>
    <link>https://dev.to/theshawshankredemption</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%2F4121333%2F862dfc7d-917c-4f0d-9664-9c05be222b98.jpg</url>
      <title>DEV Community: 0xTSR</title>
      <link>https://dev.to/theshawshankredemption</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/theshawshankredemption"/>
    <language>en</language>
    <item>
      <title>Good strategy, bad execution on Polymarket — need help improving my execution layer</title>
      <dc:creator>0xTSR</dc:creator>
      <pubDate>Sun, 20 Sep 2026 09:15:58 +0000</pubDate>
      <link>https://dev.to/theshawshankredemption/good-strategy-bad-execution-on-polymarket-need-help-improving-my-execution-layer-26a5</link>
      <guid>https://dev.to/theshawshankredemption/good-strategy-bad-execution-on-polymarket-need-help-improving-my-execution-layer-26a5</guid>
      <description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;I’m working on a Polymarket trading bot. The strategy looks decent in backtests/paper trading, but live P&amp;amp;L is negative. I’m fairly confident the signal isn’t the main problem — execution is. I’m looking for engineering feedback, not signals or financial advice.&lt;/p&gt;

&lt;p&gt;Context:&lt;/p&gt;

&lt;p&gt;Strategy: Latency Arbitrage&lt;/p&gt;

&lt;p&gt;Markets: Bitcoin Up or Down 5m&lt;/p&gt;

&lt;p&gt;Stack: [Node], Polymarket CLOB API, Polygon, USDC&lt;/p&gt;

&lt;p&gt;Order type: [FOK]&lt;/p&gt;

&lt;p&gt;Data: [polling / websocket / Gamma API / Data API]&lt;/p&gt;

&lt;p&gt;Avg order size: [e.g. 5 SHARs]&lt;/p&gt;

&lt;p&gt;Environment: [VPS / home server / local laptop]&lt;/p&gt;

&lt;p&gt;Latency: [rough estimate if known]&lt;/p&gt;

&lt;p&gt;What goes wrong live:&lt;/p&gt;

&lt;p&gt;Expected price vs actual fill price gap is large&lt;/p&gt;

&lt;p&gt;Partial fills leave me with bad inventory&lt;/p&gt;

&lt;p&gt;Cancel/replace is too slow&lt;/p&gt;

&lt;p&gt;I chase moves and get filled at worse prices&lt;/p&gt;

&lt;p&gt;Backtest assumes fills that don’t happen live&lt;/p&gt;

&lt;p&gt;API / gas / relayer / rate-limit errors during execution&lt;/p&gt;

&lt;p&gt;What I’ve tried:&lt;/p&gt;

&lt;p&gt;Limit orders instead of market orders&lt;/p&gt;

&lt;p&gt;Smaller size&lt;/p&gt;

&lt;p&gt;Wider price bands&lt;/p&gt;

&lt;p&gt;Better logging&lt;/p&gt;

&lt;p&gt;Retries and rate limiting&lt;/p&gt;

&lt;p&gt;[anything else]&lt;/p&gt;

&lt;p&gt;What I need help with:&lt;/p&gt;

&lt;p&gt;How do you model realistic fill probability on Polymarket?&lt;/p&gt;

&lt;p&gt;What’s the right order manager design for a CLOB? (quote, cancel, replace, inventory, risk)&lt;/p&gt;

&lt;p&gt;How do you handle latency and partial fills?&lt;/p&gt;

&lt;p&gt;How do you backtest with real order book data instead of assumed fills?&lt;/p&gt;

&lt;p&gt;Any open-source examples or tools for Polymarket CLOB execution?&lt;/p&gt;

&lt;p&gt;How do you measure execution quality — slippage, fill rate, adverse selection?&lt;/p&gt;

&lt;p&gt;If you’ve built execution bots for Polymarket or similar CLOBs, I’d really appreciate pointers, code examples, docs, or a critique of my approach. I can share anonymized logs/code in the comments if that helps.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;

</description>
      <category>node</category>
      <category>polymarket</category>
      <category>arbitrage</category>
      <category>orderexecution</category>
    </item>
  </channel>
</rss>
