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

npm install -g @polygonlabs/agent-cli
polygon-agent setup --name "hedging-desk"
polygon-agent wallet create --usdc-limit 5000

# One-time Polymarket setup
polygon-agent polymarket set-key 0xYOUR_EOA_PRIVATE_KEY
polygon-agent polymarket approve --broadcast
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

Read https://agentconnect.polygon.technology/SKILL.md and find the top 5 Polymarket markets on Fed rate decisions resolving in the next 90 days. Show me the YES/NO prices and the implied probabilities, then place a $50 YES hedge on the market most aligned with a rate cut.

Run the commands directly

# Discover markets by keyword
polygon-agent polymarket markets --search bitcoin --limit 5

# Take a YES position with $25 USDC at market price (dry-run, then broadcast)
polygon-agent polymarket clob-buy <conditionId> YES 25
polygon-agent polymarket clob-buy <conditionId> YES 25 --broadcast

# Monitor and exit
polygon-agent polymarket positions
polygon-agent polymarket sell <conditionId> YES 50 --broadcast
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.