Does a market maker that quotes around the last trade survive a real flow?
Answer
Not on Elysium. The same code made +$1,150 a day on a market of random bots. On Elysium's HYPE/USDC flow in a falling window it lost in all 16 settings we tried. Quoting 20 bp or more out, as posted, its fills held up five minutes later. It lost on inventory: the flow sold more than it bought, the strategy ended long, and HYPE fell 18.9%. In a rising window it lost far less and 6 of 16 settings ended above zero; hedged on Hyperliquid's perp, the best tested settings earned tens of dollars a day in both.
- 16 / 16settings that lost on Elysium's HYPE/USDC flow, 2026-11-18 to 11-21 (4 spreads × 4 variants)
- +$1,150a day on the random-bot market, quoting 30 bp from the last trade; the same quotes on Elysium in the falling window: −$227 a day
- +3.0 bpper dollar on Elysium (falling window) five minutes after each fill at 30 bp, as posted: the fills held up, the inventory didn't
- −$294a day at 10 bp with an inventory cap of $5K in the falling window, against −$5,291 without one: the cap did the most and still lost
How we measured
A post on Japanese X described a short market-maker script. It takes the last trade as the fair price, rests a bid a little below and an ask a little above, and after every trade cancels both and quotes again. We had the post only as pasted text, so we make no claim about what it reports, only about the strategy. We ran it with rdk-clob as the exchange, $500 a side, on two markets. A is our own: bots buy or sell at random, crossing 20 bp from a hidden price that doesn't trend. B is 57,393 recorded HYPE/USDC swaps on Elysium over 3.21 days. Each recorded trade arrives as an immediate-or-cancel order at the price it actually got, and fills against our quote when ours is at least as good. We're always first in line and the flow doesn't react to us, so fills are an upper bound, as in a paper trade. Besides the strategy as posted, we tried an inventory cap, a fee by direction paid to the maker (the toward side of Shadowbook's DirectionalFee defaults), and quoting around a reference price E built from HyperCore.
What else we found
- On the random-bot market, quoting 30 bp from the last trade made +$1,150 a day, +7.6 bp per dollar traded. Inside the bots' spread it lost: −$1,872 a day at 10 bp. The last trade sits 20 bp or more off the hidden price, so quoting around it is quoting around noise.
- On Elysium, the same 30 bp quotes lost $227 a day, −87.1 bp per dollar traded. Yet five minutes after each fill they were +3.0 bp. As posted, fills at 20 bp or more were at or above water five minutes later, and −6.4 bp at 10 bp. The loss was the inventory. The tape sold $6.08M and bought $5.46M, the strategy ended long in every Elysium setting, and HYPE went from $69.70 to $56.50.
- At 10 bp, as posted, it lost $5,291 a day and held up to $125.8K of HYPE. An inventory cap of $5K cut that to −$294. A fee by direction turned the five-minute result of a fill from −6.4 bp to +6.7 bp: a taker trading toward E whose all-in price would have been worse than what it got elsewhere went elsewhere in the replay. But the strategy still ended $71.9K long and lost $2,088 a day. Quoting around E lost $1,997 a day.
- Added 2026-11-24: hedged on HyperCore's HYPE perp. Each fill was offset at the open of the next minute, with hourly funding and a perp cost of 4.5 bp (the taker fee) or 14.5 bp (plus 10 bp slippage). Most of the inventory loss was offset: at 10 bp, −$5,291 a day became −$212 or −$418. But only 7 of the 24 hedged settings ended above zero, and the best made +$31 a day (30 bp, fee by direction, $500 quotes, 4.5 bp perp cost). With the 14.5 bp cost, quotes of $5,000 a side instead of $500 made at most +$38 (50 bp, fee by direction). Perp margin and liquidation are not modelled.
- The E we first used looked up to a minute ahead. Rebuilt from what is known at each trade, quoting around E lost in every hedged setting (30 bp: −$318 a day at the 4.5 bp cost); with the first E the same runs made up to +$83 a day. The fee by direction held up without the hindsight: +$31 a day at 30 bp, against +$38 with it (both at the 4.5 bp cost).
- Added 2026-11-24: a rising window. We reran everything on 32,346 swaps from 2026-11-21 06:00 to 11-24 00:00 UTC, while HYPE rose 13.3%. As posted at 10 bp, the loss shrank from −$5,291 to −$616 a day, and 10 of the 16 unhedged settings still lost. At 10 bp the average fill was still below water five minutes later: −7.3 bp, against −6.4 bp in the falling window. Hedged with the causal E, 6 of 24 settings ended above zero, and the best at $500 a side made +$42 a day. At 10 bp the strategy still lost in the rising window, and hedged, the best tested settings earned tens of dollars a day in both windows.
What we take from it
In the first, falling window, the fee by direction we tested didn't stop the inventory loss. What decided the result was a flow that leaned one way while the price fell, a property of the market, not of the code. We then asked whether a hedge on Hyperliquid's perp saves it. It offsets most of the inventory loss, but in both windows the best tested settings earned only tens of dollars a day before costs we didn't model. rdk-clob gained an immediate-or-cancel order for this replay.
Limits
- The hedged runs need data/funding_hype.csv from fetch_funding.py (HyperCore's public API); their results are in results/hedged.txt.
- Two windows only: 3.21 days in which HYPE fell 18.9%, and 2.75 days in which it rose 13.3%. Which trades are in a tape was decided with the hindsight E (trades within 5% of it); only the hedge price and the rebuilt E are free of it.
- E carries up to a minute of hindsight: HyperCore's price inside a minute is interpolated toward that minute's close. In the unhedged runs, only the fee by direction, quoting around E and the five-minute mark use it. In the falling window the variants that use it still lost; in the rising window several ended above zero, up to +$387 a day, which could not have been run live. The hedged runs use E rebuilt without it (above).
- Fills are an upper bound: first in line, and Elysium's trades were swaps against pools, replayed as if they could have come to us. No gas, no latency, no maker fee other than the rule.
- The random-bot market is our construction, and its parameters set how well the strategy does there.
Measured with an AI (Claude). It wrote and ran the scripts, and every number here is a line of the committed output.