Polymarket Bot Tutorial · Chapter 21 of 32

Polymarket binary Yes/No market bot strategies: standard event contracts, hard-capped 1x leverage, scale via portfolio breadth, common mistakes (chasing 0.99), and code skeleton.

What this chapter covers

Binary (Yes/No) markets are Polymarket's foundation. Most strategies live here. This chapter covers the leverage cap, the 0.99-price trap that catches new builders, and the breadth-not-size pattern that production bots converge on.

  • What binary markets cover
  • The 1x leverage cap (and how to scale around it)
  • Common mistake: chasing 0.99 prices
  • Portfolio breadth as effective leverage
  • Risk per market vs portfolio
  • Code: scan binary markets and place sized buys

What binary markets cover

Binary markets are the foundation of Polymarket: a single yes/no question with two outcome tokens. "Will Trump win the 2024 election?" is binary; "Who will win the 2024 election?" with 5 candidates is NegRisk (chapter 11).

The two outcome tokens (YES and NO) on a binary market sum to 1.0 minus a small spread tax. You can buy either side; both sides have their own order book. The pricing is symmetric - buying YES at 0.40 is equivalent to selling NO at 0.60 in expected payoff.

Most non-tournament markets on Polymarket are binary: weather questions, single-event political outcomes, individual sports games, single price-target crypto questions. The bot pattern is similar across most of them.

The 1x leverage cap (and how to scale around it)

Polymarket binaries are 1x leverage: you spend $40 to buy 100 shares at 0.40; max payout is $100. There is no margin and no liquidation. The capital efficiency is lower than perp futures (chapter 24) where 2-25x is available.

Scaling around the 1x cap means either: (1) deploying more capital across markets - diversify rather than lever, (2) cycling capital through resolving markets - capital frees up on each resolution and rotates to the next, (3) using NegRisk markets where the sum-to-1 arb can produce effective synthetic leverage.

The right framing for binary strategy: low-leverage, high-breadth. 50 small positions across 50 markets is the typical mature bot profile, not 5 big positions on 5 markets.

Common mistake: chasing 0.99 prices

The most common binary-bot failure: buying a near-resolution heavy favorite at 0.99, expecting easy 1c payout when it resolves YES.

The math: at 0.99, you pay 99c to win 1c. A 1% failure rate (1 in 100 markets), each costing you 99c, wipes out 99 successful 1c wins. The risk-reward ratio is brutal at the extreme.

Capacity is also a problem. The book at 0.99 is thin; placing meaningful size walks the price up to 0.995 or higher, eroding the already-thin edge.

Stay out of markets priced > 0.92 unless you have a specific strategy designed for the tail-yield arb profile. Most binary bots should never buy above 0.85.

Portfolio breadth as effective leverage

You cannot leverage individual positions but you can leverage the portfolio's variance characteristics by holding many uncorrelated bets simultaneously.

50 positions at $20 each is $1,000 in play. If win rate is 55% on +3c/-4c economics, expected daily PnL is (0.55 × 3 − 0.45 × 4) × 50 × $0.20 = $1.50 expected, with bounded variance. Same expected return, much lower drawdown, vs a single $1,000 position.

Constraint: positions must be genuinely uncorrelated. 50 NFL favorites in a single weekend are not 50 independent bets; they are largely one weather-and-favorite bet correlated across games. Diversify across sport, event type, time horizon.

Risk per market vs portfolio

Two risk caps, both required.

  • Per-market: max $X per market regardless of edge. Caps catastrophic single-market loss. Common value: $25-100 per market.
  • Portfolio: max total capital deployed at any time. Caps total drawdown across uncorrelated bad days. Common value: 50-70% of wallet balance.

The per-market cap is the more important one because it bounds the blast radius of any single bug or edge-disappears event. The portfolio cap is a sanity check; with 50+ positions, the law of large numbers usually keeps you within bounds even without it.

Both caps should be enforced in code, not in head. A bot without enforced caps will eventually find the configuration where it deploys 90% of capital into a single market and lose it.

Code: scan binary markets and place sized buys

Reference: scan top-volume binary markets, filter for valid setups, place sized FOK buys.

def scan_and_buy():
    events = gamma_top_events(limit=50, active=True, closed=False)
    for ev in events:
        for m in ev.get("markets", []):
            if m.get("negRisk"): continue   # binaries only
            outs = json.loads(m["outcomes"])
            prices = [float(p) for p in json.loads(m["outcomePrices"])]
            for i, out_name in enumerate(outs):
                if not setup_qualifies(m, i, prices[i]): continue
                tok = json.loads(m["clobTokenIds"])[i]
                size = compute_size(m, prices[i])
                if size < 5: continue
                place_fok(tok, "BUY", prices[i] + 0.02, size, neg_risk=False)

def setup_qualifies(m, idx, price):
    return 0.10 <= price <= 0.85    # avoid extremes

The setup_qualifies function is where your strategy lives. The wrapper is just plumbing.

Frequently asked questions

What is a binary market on Polymarket?
A market with exactly two outcomes - YES (1 USD if event happens, 0 USD if not) and NO. Most Polymarket events are binary: "Will X happen by Y?" Each share pays 1 USD on the winning side, 0 on the losing side, capped.
Can I leverage a binary Polymarket position?
Not with native leverage. Binary markets are 1x capped - your max loss equals your purchase cost. Synthetic leverage comes from portfolio breadth: running 50 small concurrent binary positions with positive expected value compounds faster than one large position would.
Why is buying at 0.99 risky?
At 0.99, the upside is 1 cent (about 1% return) while the downside is 99 cents (a -99% loss if the unlikely happens). The risk-reward asymmetry is brutal - a single black-swan event wipes out 100 normal wins. Hard rule for our bots: do not buy above 0.95 unless your expected value math is bulletproof.
What size should I trade per binary market?
1-5% of bankroll per market. With a 500 USD bankroll, that is 5-25 USD per position. The Kelly criterion gives a theoretical maximum (~edge / variance), but most retail bots should fractional-Kelly down to 25-50% of full Kelly to survive variance.
How do I find profitable binary markets?
Three filters: (1) Liquidity - 10K+ USD in 24h volume so you can fill and exit. (2) Resolution clarity - markets with ambiguous criteria carry dispute risk. (3) Your edge source - news, statistical model, or domain expertise. Without one of those three, you do not have an edge, you have hope.
Are binary markets less risky than NegRisk multi-outcome?
Per-market - yes (cleaner mechanics, no cross-leg risk). Per portfolio - depends on construction. A diversified portfolio of 30 binary markets often has lower variance than a concentrated NegRisk multi-outcome bet.