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.
Mẹo: Quy trình làm việc có thể thực thi này được tự động tạo bởi SeamFlux Bot. Để sử dụng, hãy tạo một thực thi và kiểm tra nó với dữ liệu của bạn để đảm bảo nó đáp ứng nhu cầu của bạn.
Sẵn sàng bắt đầu?
để chạy mẫu này hoặc tạo tác vụ đã lên lịch, và hỏi AI về các bước thực thi nút chi tiết.
Chạy cục bộ — tải workflow dưới dạng ZIP hoặc chạy qua Seamflux CLI trong terminal; dùng nút "Chạy cục bộ" phía trên để chọn.
Xây dựng quy trình làm việc từ đầu bằng cách sử dụng trò chuyện AI. Không cần cấu hình tham số phức tạp hoặc kéo thả sơ đồ luồng.