Collect historical price data from Polymarket Up/Down markets into Supabase
Ready for 3.0What 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).
- Find the Event ID from the Slug (HTTP Request): calls an HTTP API
- Fetch 100 unprocessed events (Data table): get
- Find the Series ID from the slug (HTTP Request): calls an HTTP API
- Fetch UP/DOWN tokens and end time (HTTP Request): calls an HTTP API
- Find All the Events for that Series ID (HTTP Request): calls an HTTP API
- Store UP/DOWN tokens and end time (Data table): update
- Split Events into Itens (Split Out): splits a list into separate items
- Check if market has closed (If): checks a condition and branches into true / false
- Register Events in Table Polymarket_Btc_1h_Event_List_ (Data table): uses Data table
- Mark open markets as processed (Data table): update
…plus 6 more steps. See the full node list below.
Services it uses
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)
- n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Data table
n8n-nodes-base.dataTable - Manual Trigger
n8n-nodes-base.manualTrigger - If
n8n-nodes-base.if - Date & Time
n8n-nodes-base.dateTime - Edit Fields (Set)
n8n-nodes-base.set - Supabase
n8n-nodes-base.supabase
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,…