๐ Track crypto prices & FX rates with CoinGecko & ExchangeRate-API to Notion
โก 276 views ยท ๐ Crypto Trading & Stock Market
Description
๐ Log BTC/ETH Prices and USD Exchange Rates to Notion (Hourly)
๐ Overview
This workflow automatically logs live crypto prices (Bitcoin & Ethereum) and fiat exchange rates (USDโEUR / USDโNGN) into a Notion database every hour. Each entry becomes a new row in your Notion dashboard, letting you visualize currency and crypto trends side by side.
Itโs perfect for traders, analysts, and anyone who wants a single source of truth in Notion without needing multiple apps open. With hourly updates, youโll have a clean data history for building rollups, trend graphs, or financial dashboards.
โ๏ธ How it works
- Schedule Trigger โ runs every hour (adjustable via cron).
- HTTP Request (ExchangeRate-API) โ fetches USD-base FX rates (no API key required).
- HTTP Request (CoinGecko) โ fetches BTC & ETH prices + 24h % change (no API key required).
- Merge โ combines both payloads.
- Code (v2) โ formats a Notion-ready JSON payload with the correct fields.
- Notion Node โ creates a new page in your database with mapped properties.
Example Row in Notion:
Title: Crypto+FX โ 2025-09-08 09:00
BTC: 112,417 | BTC_24h: +1.22%
ETH: 4,334.57 | ETH_24h: +1.33%
USDโEUR: 0.854 | USDโNGN: โฆ1,524.54
๐ Setup Guide
1) Create the Notion database
- In Notion, create a new database (Table view).
- Add these columns with matching property types:
| Column | Property Type |
|---|---|
| Title | Title |
| BTC | Number |
| BTC_24h | Number |
| ETH | Number |
| ETH_24h | Number |
| USD_EUR | Number |
| USD_NGN | Number |
2) Connect Notion in n8n
- In the Notion โCreate Pageโ node, connect with your Notion OAuth2 credentials.
- On first use, youโll be redirected to authorize n8n with your Notion workspace.
- Copy your Database ID (from the Notion URL) and paste it into the node.
3) Map the Code output
- The Code node outputs JSON fields:
BTC,BTC_24h,ETH,ETH_24h,USD_EUR,USD_NGN. - In the Notion node, map each property:
BTCโ{{$json.BTC}}BTC_24hโ{{$json.BTC_24h}}ETHโ{{$json.ETH}}ETH_24hโ{{$json.ETH_24h}}USD_EURโ{{$json.USD_EUR}}USD_NGNโ{{$json.USD_NGN}}
4) Test
- Run the workflow once.
- Confirm that a new page is added to your Notion database with all values filled.
๐ Customization
- Cadence: change the schedule to 10 minutes, 4 hours, or daily depending on your needs.
- Extra coins: add more IDs (e.g.,
solana,bnb) in the CoinGecko call and update the Code node. - Extra FX pairs: expand from ExchangeRate-API (e.g., USDโGBP, USDโZAR).
- Notion dashboards: use rollups, charts, and linked databases for trend visualization.
- Formatting: add emojis, colors, or sections in your Notion view for clarity.
๐งฉ Troubleshooting
- Page not created: verify Database ID and ensure the Notion API integration has access.
- Empty fields: check that property names in Notion exactly match those used in the Code node.
- Wrong data type: make sure properties are set as Number, not Text.
- Rate limits: CoinGecko and ExchangeRate-API are free but may rate-limit if called too often; keep cadence reasonable (hourly recommended).
๐ Nodes Used
HTTP Request, Notion, Schedule Trigger
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File