Recipes
Market recipes
Want to build an onchain market? Each recipe is one market. You get what actually went wrong in it (measured), what to read in order, which open-source parts to put together and how to install them, and what to check. We followed every recipe top to bottom before publishing it.
- 1See the finished picture
- 2Run it in under half an hour
- 3Why it matters, measured
- 4The parts, with install lines
- 5Go deeper

Open a HIP-3 perp market
Open a HIP-3 perp market on Hyperliquid that stays tradable on a thin first day. Then guard whatever settles on its prices against a pushed book or a jumping oracle. You get what to read, which parts to combine, and what to check.
Papertrade paid $1.41M to a wallet that spent $130,873 pushing Hyperliquid's book.
24 minDay OneHL Price GuardHIP-3 Ops
Open the recipe →.md

Open a Uniswap v4 pool that knows its stock's market
Bring a tokenized stock onto Base the way Summon does. Backers pledge. A holder fills at the live price, but only while the market is open. The stock arrives with a Uniswap v4 pool whose hook stops swaps during halts and splits, and charges more after the close.
227 of the 298 tokenized stocks registered on Base had never been minted (2026-11-07).
11 minSummonmarket-stateHL Price Guard
Open the recipe →.md

List a tokenized stock on a Solana lending market, knowing what its issuer can stop
Before a Solana lending market lists a Token-2022 tokenized stock (xStocks TSLAx on Kamino, for example), do three things. Grade what the mint's issuer can do to holders. Pin it, so CI fails when it changes. Then replay the strongest power against the market's live binaries and see which paths stop.
On Kamino's mainnet binary, the TSLAx mint's permanent delegate moves 1e-8 TSLAx out of the shared vault. That alone stops TSLAx deposits, withdraw-and-redeem, TSLAx repayments and liquidations of TSLAx-backed loans, for every TSLAx position.
11 minissuer-powersissuer-drill
Open the recipe →.md

Open a five-minute up-or-down market, settled by a price already on chain
One pool for each five-minute round. You stake on Up or Down before it starts, and the side that was right shares the other side's stakes. The two prices are the first admissible readings recorded at or after the start and the end, from a feed already on chain. No API key needed. You'll run a real BTC round on a Monad fork and a real NVDA round recorded on HyperEVM, feed it a bad oracle, and see which test notices each deleted check.
On Monad, Pyth's sponsored BTC feed updated every 17 s at the median, 90 s at worst (30 minutes, 2026-11-15). That's enough to settle a five-minute round with no API key.
10 minfiveminHL Price Guardunproven
Open the recipe →.md
Being written
Build a perp exchange on Solana
For AI agents, the index of everything here: /llms.txt
Fabrknt is independent. We're not affiliated with Hyperliquid. The parts aren't audited.