🇺🇸 English
Dec 25, 2025
📒 Docs · ☎️ Telegram · 𝕏 @ZEITFinance · 𝕏 @autonomous_af
← Previous: Part 4, Getting Filled
In Part 4, we learned how to execute orders. Now, we need to understand the asset class itself.
If you are building a bot for Polymarket's election-style markets (multi-candidate, winner-take-all), you will quickly encounter a confusing gap between what you see and how the system behaves:
Then you hear about "NegRisk Convert," and it sounds like alchemy: turning "NO" shares into "YES shares + Cash."
This is basically correct. But to use it safely, you need a clean mental model that combines the standard mechanics with the NegRisk Overlay. This article provides the three "Laws of Motion" that govern how value moves through these markets.
Before the math, here is the intuition.
Imagine a horse race with 3 horses: A, B, and C.
Without NegRisk: Betting "NO" on Horse A just means "I think A loses." The system doesn't know that this implies anything about B or C. You could theoretically bet "NO" on all three horses and lose money on every bet, which makes no sense.
With NegRisk: The system understands that exactly one horse must win.
This unlocks a powerful logic: If you bet "NO" on Horse A and "NO" on Horse B, you have effectively bet "YES" on Horse C.
NegRisk is simply the machinery that makes this logic tradeable. It allows you to take a pile of "NO" tickets (betting against the favorites) and instantly swap them for a "YES" ticket (betting on the underdog), often releasing cash in the process.
The Negrisk Horse Race Analogy: Betting "NO" on losers equals betting "YES" on the winner
Under the hood, every outcome share is an on-chain token representing a claim on collateral. You don't need to know the hashing details, but you do need to know the standard lifecycle of a binary market.
Collateral → Full Set (YES + NO)
This is how positions are created.
Split (Mint): $1.00 USDC collateral becomes 1 YES + 1 NO token
Full Set (YES + NO) → Collateral
This is the reverse.
Merge (Redeem): 1 YES + 1 NO token becomes $1.00 USDC collateral
Standard CTF treats every market as an isolated universe. It has no way to express: "If Trump wins, Harris must lose." In a pure CTF world, a 5-candidate election is just 5 disconnected binary markets. This creates massive capital inefficiency because you have to fully collateralize every single market separately.
Enter NegRisk.
NegRisk (Negative Risk) is a protocol layer that groups multiple binary markets into a single Mutually Exclusive Event, ensuring that exactly one outcome resolves to YES.
This introduces a third Law of Motion, which allows value to teleport between the disconnected markets.
NO Shares → YES Shares (+ Cash)
Convert is a primitive that allows you to transform "NO" positions into their equivalent "YES" portfolio without touching the order book.
But why does this work? It isn't magic; it's basic accounting.
NegRisk Foundations: The Three Laws of Motion & Conversion Mechanics
Convert: Transforming NO shares into YES shares and cash extraction
The reason you can extract cash from a basket of NO shares is that the basket contains a Guaranteed Floor.
Let's use a simple 3-candidate example: A, B, C. Exactly one wins. Consider what happens if you hold one share each of NO(A) and NO(B).
Let's simulate the resolution:
If A wins:
If B wins:
If C wins:
No matter who wins, this portfolio is guaranteed to pay out at least $1.00. NegRisk convert simply acknowledges this reality. It lets you extract that guaranteed $1.00 floor immediately as cash, leaving you with the remaining upside (which is mathematically identical to YES(C)).
💡 Key Insight: The guaranteed floor is what makes cash extraction possible. When you convert multiple NO positions, you're unlocking the collateral that's guaranteed to pay out regardless of which outcome wins.
When you call convert, the output is determined by how much "floor" your basket contains.
Assume candidates A, B, C (n=3). You hold 10 shares each of various NO positions.
You convert 10 NO(A).
Takeaway: A single NO leg has a floor of $0 (if A wins). No cash is released.
You convert 10 NO(A) + 10 NO(B).
Takeaway: You effectively "merged" the guaranteed floor of your NO positions to unlock $10 collateral, leaving you with the pure upside (YES C).
⚠️ Critical Rule: Cash extraction only occurs when k ≥ 2. Converting a single NO position swaps it for YES positions but releases no cash.
You might wonder: "Standard CTF only releases collateral when I have a full set. How is NegRisk giving me $10 back when I only had NO shares?"
The Answer: Plumbing. NegRisk markets do not use raw USDC as collateral. They use WrappedCollateral, a specialized token that holds the underlying USDC.
When you convert:
This is why convert works: the floor is mathematically guaranteed, so the protocol can safely unlock that portion of the collateral without requiring a full set.
There is one final, critical nuance that burns many new bot builders.
When you look at a NegRisk market on the Polymarket website—for example, "Next Republican Nominee"—you might see a list of 5 candidates. It is incredibly easy to assume that these 5 names represent 100% of the possible outcomes.
This is often false.
Every NegRisk group is initialized on-chain with a fixed number of outcome slots (n). To make the user interface cleaner, the frontend frequently hides one or more of these slots, treating them as an implicit placeholder for "Other," "None of the Above," or "Field."
If you do not account for the invisible outcome, your risk calculations will be catastrophic.
Imagine a market showing candidates A, B, and C.
You decide to execute a "No Arb" strategy (which we will cover in Part 6). You buy NO(A), NO(B), and NO(C), believing you have covered every possibility and locked in free money.
The Reality: The market was actually initialized with n=4 outcomes on-chain. The fourth, hidden outcome is "Other."
If a surprise candidate wins, the hidden "Other" slot resolves to YES.
Consequently, A, B, and C all resolve to NO.
Your pile of "NO" shares, which you thought was a risk-free hedge, is now worthless. They all settle to $0.
🚨 Bot Builder Rule: Never assume the frontend displays the complete set of outcomes. Always check the on-chain metadata or API response to determine the true total number of outcome slots (n) in a NegRisk group. Your math must account for the invisible slot.
To build profitable strategies, you must simulate these transitions in your head:
These three Laws of Motion form the foundation of all NegRisk strategies. Understanding them deeply is the difference between profitable automation and catastrophic losses.
Collateral → Full Set (YES + NO)
Full Set (YES + NO) → Collateral
NO Shares → YES Shares + Cash
Now that we understand the laws of motion, we can turn them into code. Part 6 will cover The Strategy Implementation: We will look at the three basic strategies:
This article is Part 5 of the ZEIT Finance series on building Polymarket trading bots. ZEIT Finance turns prediction markets into perpetual assets.