Templates / Collect historical price data from Polymarket Up/Down markets into Supabase

Collect historical price data from Polymarket Up/Down markets into Supabase

Ready for 3.0

by Caio Carvalho · 1,288 views · created 2026-01-19 · Crypto Trading

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 18 nodes and runs when someone submits an n8n form (“Polymarket Slug”) (plus 1 other trigger). Along the way it connects Supabase.

How it runs

Trigger: When someone submits an n8n form (“Polymarket Slug”) (plus 1 other trigger).

  1. Find the Event ID from the Slug (HTTP Request): calls an HTTP API
  2. Fetch 100 unprocessed events (Data table): get
  3. Find the Series ID from the slug (HTTP Request): calls an HTTP API
  4. Fetch UP/DOWN tokens and end time (HTTP Request): calls an HTTP API
  5. Find All the Events for that Series ID (HTTP Request): calls an HTTP API
  6. Store UP/DOWN tokens and end time (Data table): update
  7. Split Events into Itens (Split Out): splits a list into separate items
  8. Check if market has closed (If): checks a condition and branches into true / false
  9. Register Events in Table Polymarket_Btc_1h_Event_List_ (Data table): uses Data table
  10. Mark open markets as processed (Data table): update

…plus 6 more steps. See the full node list below.

Services it uses

Supabase

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

This workflow automatically collects historical price data from Polymarket Up/Down markets and stores it in Supabase, creating a structured and query-ready dataset for analysis. By continuously fetching price movements from prediction markets such as Bitcoin,…

Excerpt from Caio Carvalho's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.