Skip to main content
A business faces real exposure to events it cannot control: a regulatory decision that would force a product change, a rate move that swings demand, a sporting outcome that drives ad inventory pricing. Traditional risk desks cannot hedge most of these because the instruments are not on regulated venues. Polymarket’s CLOB does have them. The Agent CLI ships first-class Polymarket support, discover markets, fund a proxy wallet, place CLOB buys and sells, list positions, cancel orders, under the same dry-run + broadcast safety model as every other write command. This is small-dollar tactical hedging. Treat it the way a finance team treats a corporate hedging program: bounded notional, explicit policy, recorded receipts. Who this is for:
  • Strategy and risk teams piloting event-driven hedges that traditional desks do not offer
  • Companies with measurable exposure to regulatory, election, or macro outcomes
  • Operations teams hedging supply-chain, demand, or weather risk against published markets

How it works

Hedge cycle
1OperatorCLIpolygon-agent polymarket markets —search “rate cut”
2CLIOperatorLists active markets by volume with conditionId
3OperatorCLIpolymarket clob-buy <conditionId> YES 25 (dry-run)
4Smart walletProxy walletOn broadcast: funds proxy, places CLOB buy
5OperatorCLIpolymarket positions / orders to monitor
6OperatorCLIpolymarket sell … when the position resolves or rotates
Polymarket uses a separate EOA key for CLOB signing, imported once via polymarket set-key. The proxy wallet needs a one-time polymarket approve --broadcast before the first buy. Both are one-time setup steps; subsequent hedges are a single clob-buy followed by positions and sell when the position rotates.

Get started

Two one-time steps before the first hedge: import an EOA private key for CLOB signing via polymarket set-key, then run polymarket approve --broadcast to authorize the proxy wallet. After that, the cycle is markets to discover, clob-buy to enter, positions to monitor, sell to exit.

Install

The smart wallet funds the Polymarket proxy on each buy. Size --usdc-limit to match the maximum notional you intend to hedge.

Drive it from an LLM

Run the commands directly

Full reference: Polymarket.

Implementation

Polymarket

Full command reference: markets, clob-buy, sell, positions, more.

Setup and wallets

The smart wallet funds each Polymarket buy.

Balances and funding

Keep USDC available before placing orders.

Transfers

Move USDC into the smart wallet before the first hedge.