Automation library · Alerts and monitoring

Automated range trading with Uniswap V3 and Telegram

Started by a clock, and works across Telegram. 37 steps, 6 branches: large, and worth reading before you trust it with anything live.

Large

37 stepsLarge: read it before trusting it with anything live
6Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 2Logic 10Service 25

The steps in the order they run, from what starts it.

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2When clicking ‘Execute workflow’Manual triggerStarts it
  3. 3Swap ConfigsCodeLogic
  4. 4List walletsOne ShotService
  5. 5Fetch Pool TWA ObservationsOne ShotService
  6. 6IfIfLogic
  7. 7Calculate TWAPCodeLogic
  8. 8Get Wallet IDCodeLogic
  9. 9Create walletOne ShotService
  10. 10Get Last Trade TypeOne ShotService
  11. 11Assure WETH MethodsOne ShotService
  12. 12Assure SwapRouter02 MethodsOne ShotService
  13. 13Assure USDC MethodsOne ShotService
  14. 14Assure ETH/USDC Pool MethodsOne ShotService
  15. 15Assure QuoterV2 MethodsOne ShotService
  16. 16Parse Last TradeCodeLogic
  17. 17Buy, Sell or HoldSwitchLogic
  18. 18Don't Repeat SellsIfLogic
  19. 19Don't Repeat BuysIfLogic
  20. 20Get Sell QouteOne ShotService
  21. 21Get Buy QouteOne ShotService
  22. 22Confirm SellTelegramService
  23. 23Confirm BuyTelegramService
  24. 24Sell or Cancel?IfLogic
  25. 25Buy or Cancel?IfLogic
  26. 26Give Approval to Router (Sell)One Shot SynchService
  27. 27Sell CancelledTelegramService
  28. 28Give Approval to Router (Buy)One Shot SynchService
  29. 29Purchase CancelledTelegramService
  30. 30Sell ETHOne Shot SynchService
  31. 31Sell Failure NotificationTelegramService
  32. 32Buy ETHOne Shot SynchService
  33. 33Buy Failure NotificationTelegramService
  34. 34Check New FundsOne ShotService
  35. 35Check Remaining FundsOne ShotService
  36. 36Success Details (Sell)TelegramService
  37. 37Success Details (Buy)TelegramService

How it's built

Starts on
A clock
Steps
37, with 6 branches
Size
Large: read it before trusting it with anything live
Connects to
Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Telegram account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 37 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 37 steps before you point it at anything that matters.