# Polymarket: Volume Farming Bot

Automatically generate Polymarket trading volume by placing offsetting BUY orders on both outcomes of balanced markets every 15 minutes. The bot searches for liquid, non-negRisk markets with balanced prices (YES between 15-85%), validates orderbook spreads are tight (<$0.10 combined), and places GTC limit orders on both sides. Risk-neutral by design — you hold both outcomes.

### Quick Setup:

1. Choose the wallet to trade with (must have pUSD on Polygon)
2. Set your trade amount per side (default: $10)
3. Select a notification channel for trade confirmations
4. Test and publish!

### Risk Controls:

- Limit orders only (GTC, post-only) — won't fill at bad prices
- Spread gate: skips if combined spread > $0.10
- Price balance filter: only trades markets with YES price 15-85%
- Minimum order size: 5 shares per side
- Liquidity floor: $10k minimum on-book liquidity

## Workflow Steps

- **if** — Check if a suitable market was found.
- **if** — Check if trade should be skipped due to spread or sizing.
- **code-transform** — Calculate BUY orders for both outcomes. Validates spread and minimum sizes.
- **polymarket-get-orderbook** — Fetch orderbooks for the selected market.
- **log** — Log why no market was found.
- **log** — Log why trade was skipped.
- **notification** — Send trade confirmation.
- **code-transform** — Filter for balanced, non-negRisk markets and pick the most liquid one.
- **polymarket-place-bet-batch** — Place atomic BUY orders on both outcomes.
- **cronjob** — Triggers every 15 minutes.
- **polymarket-search-markets** — Browse all active markets sorted by volume with minimum liquidity.

**Tags:** Trading, Polymarket
