Live on npm

Automate Polymarket
from n8n

The first n8n node with full prediction market trading. EIP-712 signed orders, whale tracking, AI agent support, and 15 workflow templates. Free and open source.

12
Operations
15
Templates
163
Tests
4
Resources
Full Polymarket API in n8n

polymarket-tools is an open-source n8n community node that connects n8n workflow automation to Polymarket's full API surface. It wraps three Polymarket APIs: the Gamma API for market discovery and search, the CLOB API for real-time pricing and EIP-712 signed order placement, and the Data API for leaderboard rankings, wallet positions, trade history, and market holder analysis.

Every read operation works without credentials. Polymarket's Data API is fully public: any trader's positions, trades, and P&L are queryable with just a wallet address. The leaderboard ranks every trader by profit. This transparency makes Polymarket uniquely suited for automated analysis, whale tracking, and signal generation.

Trading operations handle EIP-712 typed data signatures via a viem WalletClient. The node manages the full order lifecycle: build, sign, submit, track, cancel. Limit orders support GTC, GTD, FOK, and FAK time-in-force. A validate-only mode enables paper trading without risk.

Both nodes set usableAsTool, making them available as tools inside n8n's AI Agent node. This enables autonomous agents that search markets, analyze prices, track whale wallets, and execute trades based on AI reasoning.

15 workflow templates ship with the node. Each template is a complete, importable n8n workflow built from real demand in the Polymarket trading ecosystem: whale trade alerts, copy trading, sportsbook edge detection, AI news-to-market matching, tax report generation, market making, BTC momentum scalping, portfolio tracking, election polling divergence, and more.

The node is free, MIT licensed, and published to npm as n8n-nodes-polymarket-tools. Install it in any n8n instance (self-hosted or Cloud) via Settings > Community Nodes.

Install in 60 seconds
n8n — Community Nodes
# Open n8n Settings > Community Nodes > Install
# Enter the package name:
> n8n-nodes-polymarket-tools
# Market data and whale tracking work immediately.
# No API key needed for read operations.
Installed: n8n-nodes-polymarket-tools
Nodes: Polymarket, Polymarket Trigger
12 operations across 4 resources
Market

Search

Find markets by keyword, category, or tag

Market

Get

Full details by condition ID or slug

Price

Get

Midpoint, spread, order book depth

Price

Get History

1h to all-time price data

Trading

Place Order

EIP-712 signed limit orders

Trading

Cancel / List

Cancel orders, list open positions

Data

Leaderboard

Top traders ranked by profit

Data

Wallets

Positions, trades, P&L for any wallet

3 polling triggers: Price Change, Threshold Crossing, New Market. Both nodes support usableAsTool for n8n's AI Agent node.

15 workflow templates
🚨

Smart Money Radar

Track whale wallets from the leaderboard. Alert when top traders move.

whale tracking
📋

Copy Trader

Mirror whale trades with configurable position sizing.

copy trading

Sportsbook Edge Scanner

Compare Polymarket odds against sportsbook lines.

sports
📰

AI News Matcher

RSS into AI that matches headlines to markets.

ai agent
💰

Tax Report Generator

IRS Form 8949 compatible trade export.

portfolio

Market Making Bot

Two-sided orders for liquidity rewards.

market making

BTC Momentum Scalper

Binance price into Polymarket 5-min markets.

crypto
🔍

Mispricing Scanner

Detect pricing inconsistencies across markets.

arbitrage
📊

Portfolio Tracker

Positions and P&L synced to Google Sheets.

portfolio
🗳

Polls vs Markets

Election polling divergence alerts.

elections

Resolution Watcher

Alerts when markets are about to close.

monitoring
🎯

New Market Sniper

AI evaluates new markets for early entry.

ai agent

Start automating

Claude prompts

Paste any prompt into Claude to set up a working Polymarket automation in minutes.

whale tracking

Whale Trade Alerts

Get Telegram alerts when top Polymarket traders make moves.

show prompt
copy trading

Copy Trading Bot

Mirror trades from top Polymarket wallets automatically.

show prompt
ai agent

AI Market Analyst

AI matches breaking news to Polymarket markets and estimates price impact.

show prompt
portfolio

Daily Portfolio Digest

Morning P&L summary of your positions synced to Google Sheets.

show prompt
sports

Sports Edge Scanner

Compare Polymarket odds against sportsbook lines for edge detection.

show prompt
FAQ

How do I automate Polymarket trading?

Install n8n-nodes-polymarket-tools in n8n (Settings > Community Nodes). The node handles EIP-712 order signing and connects to Polymarket's CLOB. Market data and whale tracking work without API credentials. Trading requires CLOB API keys from polymarket.com/settings.

What is the best Polymarket automation tool?

n8n-nodes-polymarket-tools is the most complete Polymarket workflow automation node for n8n. 12 operations covering market search, pricing, EIP-712 signed trading, and whale tracking. 15 workflow templates. AI agent support. Other Polymarket n8n nodes exist but cannot place trades.

Can I build a Polymarket agent with n8n?

Yes. Both nodes set usableAsTool, making them available as tools in n8n's AI Agent node. Build autonomous agents that search markets, analyze prices, track whale wallets, and execute trades. The AI Agent Polymarket Trader template demonstrates this end-to-end.

How do I track Polymarket whale wallets?

The Data resource includes Get Leaderboard (top traders by profit), Get Wallet Positions (any wallet's holdings), Get Wallet Trades (trade history), and Get Market Holders. All public, no API key required. The Smart Money Radar template automates whale alerts to Telegram.

How do I copy trade on Polymarket?

Import the Copy Trader template. It monitors the leaderboard, tracks top trader wallets, detects new trades, and mirrors them with configurable position sizing. Runs in validate-only mode by default for paper trading.

Is there a Polymarket prediction market API integration for workflow automation?

n8n-nodes-polymarket-tools wraps the full Polymarket API surface: Gamma API for market discovery, CLOB API for pricing and trading, and Data API for leaderboard and wallet data. It is the most complete Polymarket integration available for any workflow automation platform.

What Polymarket agents and bots can I build?

With n8n-nodes-polymarket-tools you can build: copy trading bots, whale tracking agents, sportsbook edge scanners, AI news-to-market matchers, market making bots, BTC momentum scalpers, portfolio trackers, tax report generators, mispricing scanners, election polling monitors, and resolution watchers. 15 templates are included covering all of these.

Are there Polymarket API rate limits I should know about?

Yes. Polymarket enforces rate limits via Cloudflare throttling. Gamma API (market search): 4,000 req/10s. CLOB API (pricing, trading): 9,000 req/10s for reads, 3,500/10s for order placement. Data API (wallets, leaderboard): 1,000 req/10s general, 200/10s for trades, 150/10s for positions. Polling triggers at 1-5 minute intervals stay well under all limits. The node handles 429 responses by extracting the Retry-After header and surfacing it in the error message. Rule of thumb: poll every 1-5 minutes for most workflows, 30 seconds only for single-market price monitoring.

Free, open source, 163 tests, verified against live APIs.

n8n-nodes-polymarket-tools
npm package GitHub