Automate token purchases with dollar cost averaging on Uniswap V3 & 1Shot API
UnknownWhat this workflow does
This workflow has 10 nodes and runs on a schedule (every 15 minutes). Along the way it connects Telegram and 1shot (community).
How it runs
Trigger: On a schedule (every 15 minutes).
- Swap Configs (Code): runs custom JavaScript code
- Fetch Pool TWA Observations (One Shot): read
- Get Swap Qoute (One Shot): simulate
- Calculate TWAP (Code): runs custom JavaScript code
- Give Approval to Router (One Shot Synch): execute as delegator
- Swap Tokens (One Shot Synch): execute as delegator
- Failure Details (Telegram): uses Telegram
- Get Remaining DCA Funds Balance (One Shot): read
- Success Details (Telegram): uses Telegram
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-1shot is verified or supports 3.0 (used in Fetch Pool TWA Observations, Get Swap Qoute, Get Remaining DCA Funds Balance).
- Check that n8n-nodes-1shot is verified or supports 3.0 (used in Swap Tokens, Give Approval to Router).
Nodes used (5)
- Code
n8n-nodes-base.code - One Shot
n8n-nodes-1shot.oneShot - One Shot Synch
n8n-nodes-1shot.oneShotSynch - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Telegram
n8n-nodes-base.telegram
From the author
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Dollar Cost Averaging with Uniswap V3 This workflow lets you set up an scheduled workflow to dollar cost average (DCA) into any token on a custom schedule…