Overview
Supercharge your prediction market strategies by connecting Polymarket to your entire crypto ecosystem with B3OS. Automate complex trading logic, real-time market monitoring, and instant position management using our seamless CLOB API integration.
Popular ways to use the Polymarket integration onchain
View all templates ›Automated Stop-Loss Manager for Polymarket
Periodically checks market positions and automatically closes any assets that fall below a predefined price threshold. It then sends a notification via Slack once a position is liquidated.
Drake News → Polymarket Auto-Bet
Monitors music-news X accounts every minute for breaking Drake stories, asks AI YES/NO on your chosen Polymarket Drake market, and auto-bets when the signal is clear. Telegram/Slack notification on every bet.

HIP-4 vs Polymarket Market Scanner
Scans all active HIP-4 outcome markets on Hyperliquid, automatically finds matching Polymarket markets using multi-signal scoring, and alerts when the fee-adjusted spread exceeds a configurable threshold.
Nothing Ever Happens: Auto-Buy No on Polymarket (H/T Sterling)
Auto-buys 'No' on every eligible non-sports Polymarket. Scans markets on a schedule, filters out sports/crypto/finance/negRisk, skips markets already held by your wallet, and posts GTC limit orders on 'No' outcomes priced at or below your threshold. Includes an orderbook + slippage pre-check so illiquid markets are skipped silently rather than failing the bet. Proceeds go to a segregated wallet, waiting for Sterling to claim it if he sees this. H/T Sterling for the strategy.

PM vs HL Edge Scanner
Scans for cross-platform arbitrage edges between Polymarket and Hyperliquid HIP-4 outcome markets. Compares implied probabilities on matching markets and sends a formatted report to your chosen notification channel.
Polymarket: AI Bets When It Disagrees with the Market
Trades US-based policy events based on AI forecasts. On a set schedule, the workflow scrapes news from the Fed, SEC, and White House, has an AI assign probabilities to forecastable events, and searches Polymarket for a matching market. If the AI's probability differs from the live market price by more than your gap threshold, it sizes a bet as a percentage of your bankroll, places a Fill-And-Kill order, and sends a Telegram alert with the market link, outcome, gap, and AI reasoning. If there's no gap or no matching market, it skips. **Quick Setup** 1. Import your wallet or connect your B3OS Treasury Wallet 2. Set the trigger schedule - how often the bot scans for news 3. Pick news sources (Defaults: Fed, SEC, White House - any Firecrawl-reachable URL works) 4. Choose your AI model (Default: openai/gpt-4o) 5. Set the gap threshold - minimum AI-vs-market difference needed to fire a bet 6. Set bet sizing - a bankroll multiplier (e.g. 0.02 \= 2%) plus min/max in pUSD (Polymarket's currency) 7. Connect Telegram for placed-bet and skip alerts 8. Test and publish!
Supported triggers and actions
Polymarket Search Markets
ActionSearch and browse Polymarket prediction markets. Use orderBy 'trending'/'volume'/'newest'/'liquidity' to browse all active markets without any filters. 'trending' ranks by 24-hour volume, one market per event — the same feed as polymarket.com's Trending page; use it for 'what's trending / hot / popular today'. 'volume' is ALL-TIME volume, which surfaces long-dated mega-markets that may barely trade today — use it for 'biggest markets ever', not for trending. Add a query for keyword search, or date filters (endDateMin/Max) for time-bounded browsing. Returns markets with question, outcomes, prices, volume, liquidity, and parent eventSlug/eventTitle. Search ranking: keyword queries match against EVENT titles, then surface that event's markets — so per-game markets (e.g. 'Belgium vs. Egypt') only appear when the query matches the event title. Results are volume-ranked by default so the liquid flagship market (e.g. 'World Cup Winner') surfaces first ahead of low-volume novelty markets (e.g. 'World Cup: Glove Brand'); for specific matchups, search by team/entity names alone (e.g. 'Belgium Egypt'). Absence from one query does not mean absence from Polymarket. Query vs tag: use `query` for keyword/entity search (e.g. 'bitcoin', 'Belgium Egypt'); use `tag` to BROWSE a whole category by its Polymarket slug (e.g. tag: 'weather' | 'sports' | 'politics' | 'fifa-world-cup'), which returns the same live markets as polymarket.com/<slug>. Prefer `tag` for topic/category requests — keyword search misses category markets whose text omits the word (e.g. query 'weather' finds nothing, but tag 'weather' surfaces the live 'Highest temperature in <city>' markets). A bare `tag` browses by volume. Ideal for: market discovery, automated market selection, finding short-duration markets, dashboards.
Polymarket Get Balance
ActionGet pUSD balance for Polymarket trading. Returns the pUSD collateral balance available for placing orders and allowance status. Ideal for: balance monitoring, pre-trade checks, portfolio overview, automated trading workflows.
Polymarket Get Positions
ActionGet current positions (open bets) for a given wallet address on Polymarket. Returns position details including size, average price, current value, and P&L. Optionally filter by market. Ideal for: portfolio tracking, P&L monitoring, position management, automated rebalancing.
Polymarket Get Orderbook
ActionGet the order book for one or more Polymarket tokens showing all bids and asks. Supports single token (tokenId) or batch mode (tokenIds array) for efficient multi-token lookup. Returns full depth of market with price levels, sizes, and spread information. Ideal for: market analysis, liquidity assessment, spread monitoring, trading strategy development.
Polymarket Place Bet (Batch)
ActionSubmit multiple orders atomically in a single CLOB request. All orders land on the orderbook simultaneously — no price drift between legs. Ideal for: arbitrage strategies, multi-leg hedges, portfolio rebalancing, event-based multi-market bets.
Polymarket Place Bet
ActionPlace a bet (order) on Polymarket prediction markets. Supports BUY/SELL orders with GTC, FOK, or FAK order types. Flexible pricing modes: market, limit, or copy from variables. Ideal for: automated trading strategies, event-based betting, portfolio diversification, prediction market arbitrage.