Trending and top markets on Polymarket — volume, new markets, biggest movers
Read memory/MEMORY.md for context. Read the last 2 days of memory/logs/ to avoid repeating data.
Fetch active markets from Polymarket's public API:
# Top markets by volume (24h) — primary data source
curl -s "https://gamma-api.polymarket.com/markets?closed=false&order=volume24hr&ascending=false&limit=20"
# Recently created markets (new & trending)
curl -s "https://gamma-api.polymarket.com/markets?closed=false&order=startDate&ascending=false&limit=20"
Note: Do NOT use order=liquidity — this endpoint returns unreliable data (sub-$10k garbage values). Instead, extract liquidity from the volume response (markets with high volume inherently have liquidity) or use the CLOB API:
# If you need liquidity data, use the CLOB API for specific markets
# (get the condition_id from the volume response first)
curl -s "https://clob.polymarket.com/book?token_id=CONDITION_ID"
Analyze and surface. If ${var} is set, filter markets to those related to that topic:
For any especially interesting market, use WebSearch or WebFetch to grab context on why it's moving.
Send via ./notify (under 4000 chars):
*Polymarket — ${today}*
*Top by Volume (24h)*
1. "Question?" — YES X% / NO Y% ($Xm vol)
2. ...
*Biggest Movers*
↑ "Question?" — YES X% → Y% (+Z%)
↓ "Question?" — YES X% → Y% (-Z%)
*New & Notable*
- "Question?" — $Xk vol, launched Xd ago
*Liquidity Leaders*
1. "Question?" — $Xm liquidity
Log to memory/logs/${today}.md. If the API returns empty or errors, log "POLYMARKET_OK" and end.