Polymarket
Prediction market integration via Gamma and CLOB-aware provider actions. Setup, preflight, and EU egress for live orders.
Category: Prediction
Polymarket flows use governed catalog actions with CLOB prep and policy gates in the runtime. Live orders egress through EU infrastructure, not from the Hermes machine region alone.
Credential model
| Layer | Model |
|---|---|
| Owner signer | User Privy embedded wallet in production |
| Signer delegation | User grants Thirdfy signer access via Privy |
| CLOB credentials | Encrypted polymarket_clob stored in Thirdfy API after browser setup |
| Deposit wallet | Deterministic funder with signatureType=3 (POLY_1271) for new users |
| Collateral | Deposit-wallet pUSD for CLOB buying power. Signer EOA USDC is not CLOB buying power. |
Wallet, funder, and CLOB credentials must belong together. ERC-7710/Gator applies to EVM paths, not CLOB order signing.
Discovery
| Surface | Example |
|---|---|
| MCP | getProviderActions { provider: "polymarket" } |
| CLI | thirdfy-agent actions with polymarket filter |
Use it
Ask your agent:
Check the venue. Readiness reports funding, credentials, approvals and the blockers that stop an order.
Trimmed result from a real read on 2026-10-08:
ready is true only when blockingReasons is empty. pUsdBalance is deposit-wallet pUSD, the CLOB buying power.
One read. Search Gamma for markets:
Trimmed result from a real read on 2026-10-08 (one event, one of its markets):
What to check: search also returns closed events, so skip any with closed: true. outcomes, outcomePrices and clobTokenIds are JSON strings in the same order; parse them and take the token ID for the outcome you want. Check acceptingOrders, the tick size and orderMinSize before you price an order.
One write. A limit order on one outcome token:
This places a real order with real funds. Run getVenueReadiness first and confirm with the wallet owner.
price is between 0 and 1 per share. size is in shares. side is BUY or SELL. Run thirdfy-agent preflight with the same flags to check the params before you send it.
Readiness checklist
- Browser or Privy setup flow completed for the owner wallet.
- CLOB credentials stored and valid before autonomous order placement.
- Setup, preflight, and geoblock gates pass in production runtimes.
- Credits gate orchestration; deposit-wallet pUSD funds the trade.
- Gasless relayer steps for deposit-wallet deploy and approvals where applicable.
Execution lanes
runMode | Notes |
|---|---|
thirdfy / hybrid | Delegated user capital with stored CLOB creds |
agent_wallet | Agent-owned lane when policy and setup allow |
See Delegation and protection for lane boundaries.
MCP sequence (summary)
getProviderActions { provider: "polymarket" }- Gamma discovery (tags, events, markets)
- CLOB setup and readiness actions
- Place or cancel orders with managed venue credentials
See Thirdfy MCP.
Hosted deploy
Polymarket signal templates are on EarnOrg (docs.earnorg.com).