<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by james on Medium]]></title>
        <description><![CDATA[Stories by james on Medium]]></description>
        <link>https://medium.com/@james_mgnr?source=rss-5647d5603347------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KhXkDekUHQVdHiYsl95sXg.png</url>
            <title>Stories by james on Medium</title>
            <link>https://medium.com/@james_mgnr?source=rss-5647d5603347------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 23:03:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@james_mgnr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The one where they extract $50k from Sir Arthur Hayes’ honeypot]]></title>
            <link>https://medium.com/@james_mgnr/the-one-where-they-extract-50k-from-sir-arthur-hayes-honeypot-d25fa5f066e4?source=rss-5647d5603347------2</link>
            <guid isPermaLink="false">https://medium.com/p/d25fa5f066e4</guid>
            <dc:creator><![CDATA[james]]></dc:creator>
            <pubDate>Sat, 12 Sep 2020 19:47:43 GMT</pubDate>
            <atom:updated>2020-09-13T11:43:39.350Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s Feb 2018. $BTC px has crashed in 2 months from $19k -&gt; $10k. Retail tongues are awash with the taste of sour.</p><p><a href="http://twitter.com/BitMEX">@BitMEX</a> still on the ‘innovation’ train with the launch of their spicy new $NEO perp. <a href="https://twitter.com/CryptoHayes">@CryptoHayes</a> sends it with a $100k giveaway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*kiSaZPQgkF1RJesd0x-GBg.png" /><figcaption><a href="https://blog.bitmex.com/neo-100k-giveaway/">https://blog.bitmex.com/neo-100k-giveaway/</a></figcaption></figure><p>Prizes for the giveaway are $50k, $25k, $20k, shitkicker potluck.</p><p>Awards go to largest <em>quoted </em>(not traded) volume. Spread requirement max 50 bps (wide by today’s standard, but not back then, esp for a shxtcoin).</p><p>At the time we’re running a bastardized spinoff of <a href="http://twitter.com/STRML_">@STRML_</a> <a href="https://github.com/BitMEX/sample-market-maker">sample-market-maker</a>.</p><p>Email to cofounder:</p><blockquote>We could do this. Starts in 2 days.</blockquote><p>10 day contest duration. Leggo!</p><p>Our setup is unsophisticated. No data from external sources…only BitMEX <a href="https://www.investopedia.com/terms/n/nbbo.asp">BBO</a>. Here’s hoping the 50 bps spread would stop us getting badly run over just quoting around the BBO mid…</p><p>D-day rolls around and book opens super thin. There’s only one other participant mimicking our (obvious) strategy, so we think we’re good for at least $25k. Naturally we want the $50k. But like any efficient marketplace, &gt;=2 players and it’s game on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*WWNYO6KDpohWmFiKFbWCEw.png" /><figcaption>NEO orderbook at t0</figcaption></figure><p>We aptly nickname the competing player ‘bigdick’.</p><p>From day 1 the recursive game-theoretical qty creep sets in:</p><p>&gt; mgnr quotes $100<br>&gt; bigdick quotes $200<br>&gt; mgnr quotes $500<br>&gt; bigdick quotes $1000</p><p>Soon enough we’re both out there with $10k quotes in a volatile af asset, book has zero flow. Sitting ducks.</p><p>Sometime around day 5 $NEO takes a massive dump. Predictably, with our naive setup, we get washed out for our $20k collateral.</p><p>Decision juncture. At this point the contest is halfway over, and it has become clear to us that bigdick probably has a more sophisticated data and pricing model.</p><p>What to do?</p><p><strong>Getting crafty / got game?</strong></p><p>We email BitMEX some questions to clarify contest mechanics:</p><blockquote>1. What if asymmetric qty is quoted? (one small side one large side, hoping they count the larger)<br>2. How often are snapshots taken to measure contestants?<br>3. Do hidden orders count?</blockquote><p>The response back:</p><blockquote>1. Qty is counted as smallest quote on book (sad panda)<br>2. Snapshots are taken every minute<br>3. Hidden liquidity <em>is</em> counted (BOOM!)</blockquote><p>We have our first in. Now we can, probably, quote large hidden qty and bigdick won’t know we’re gunning for the throne.</p><p>A heist it shall be!</p><p>Yet we have that little issue with the pricing model. Hidden liquidity still gets steamrolled on one-way moves.</p><p>So we ponder the once / minute snapshots. If you were the dev writing the snapshot algorithm, you probably just (pseudocode) now() // 60. If true, we should just target our quotes around :00.</p><p>With a rejigged algo, the new tactics go into production:</p><p>Every minute, on the minute, for 2 seconds around :00, we’d quote $20k hidden qty on the $NEO perp.</p><p>Amazingly, it worked!</p><p>After a hard-faught 10 days, the contest end was met with a surprise announcement…</p><blockquote>We were very impressed with the performance of the top two traders, and as a result decided to name them both grand-prize winners. Special congratulations to both of you.</blockquote><p>Awwww you guys! Warms your heart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*cSopRAzsGsZ77a5kjFrNyQ.png" /><figcaption>Who wore it better? <a href="https://blog.bitmex.com/neo-giveaway-winners-announcement/">https://blog.bitmex.com/neo-giveaway-winners-announcement/</a></figcaption></figure><p>And bigdick, wherever you are (<em>edit: it was </em><a href="https://medium.com/u/29cdaef533b5"><em>Danny Y</em></a>), well played and thanks for sharpening our toolkit!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*Cwwv-E7A7O9DKPhELtYW8A.png" /><figcaption>We thank you for your donation</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d25fa5f066e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>