Gets the Pyth on-chain TWAP price and the Binance spot price for the same asset; if the spread between them is above your threshold, it sends one alert to Discord and then finishes.
Binance API (required): Binance API credentials. Used to fetch the spot price.
Spot symbol (required): Binance spot pair. Example: BTC/USDT. Must match the Pyth asset (e.g. btc).
Pyth asset name (required): Asset identifier for Pyth. Example: btc. Should match the spot symbol (e.g. BTC/USDT → btc).
TWAP window (seconds) (required): Length of the Pyth TWAP window in seconds; max 600. Example: 300 (5 minutes).
Spread threshold (%) (required): Alert when the absolute spread (|Pyth TWAP − Binance| / Binance) is at or above this percentage. Example: 0.5.
Discord Webhook URL (required): Webhook URL for the channel where the alert is sent.
What it does, step by step:
When it stops: After one run; it runs once and stops.
If something fails: If any fetch or Discord send fails, the error propagates and the workflow ends.
Tip: This executable workflow was automatically generated by SeamFlux Bot. To use it, create an execution and test it with your data to ensure it meets your needs.
Ready to get started?
to run this template or create a scheduled task, and ask AI about detailed node execution steps.
Run Locally — download this workflow as a ZIP or run it via Seamflux CLI in your terminal; use the "Run Locally" button above to choose.
Build a workflow from scratch using AI chat. No complex parameter configuration or flowchart dragging needed.