This workflow is for users who want to trade Opinion’s 1-hour up/down markets (e.g. “Will BTC go up or down in this 1h window?”) based on spot price movement. It uses Binance 1h candles and your own thresholds to decide when to buy Yes or No, then monitors the position until settlement with take-profit and stop-loss. When the workflow needs to place or close an order, it asks you to sign in your wallet (human-in-the-loop); no private key is stored in the workflow.
What problem is this workflow solving? / Use case
You want to automate Opinion 1h up/down trading instead of watching and clicking manually.
You want entries driven by clear rules: e.g. “within X minutes of settlement, if price moved up/down by at least Y, buy Yes or No.”
What this workflow does
Starts when you trigger the workflow and submit the config (currency, thresholds, order size, stop-loss, direction, optional Telegram credentials, Opinion credentials). Binance 1h data uses the public API (no Binance credential needed).
Finds the current 1h market for the chosen currency (e.g. BTC, BNB, ETH) on Opinion.
Polls Binance 1h candles until either the window ends or a volatility rule matches:
Rules are like “50/50,30/200,10/300” (minutes-to-close / min price move in quote units). The workflow buys when the current 1h candle satisfies one of these rules.
Direction can be “up” only, “down” only, or both (first match wins).
When a rule matches, the workflow places a buy order on Opinion. It asks you to sign in your wallet (EIP-712). After you sign, the order is submitted. If the order fills and you added Telegram credentials, you receive a Telegram notification (BUY filled). The same applies when a take-profit or stop-loss sell fills.
Monitors your position until the 1h window settles:
If the position’s price reaches 0.99, it triggers take-profit: the workflow asks you to sign a sell order, then submits it.
If the position’s price drops from your average by at least your stop-loss %, it triggers stop-loss: same flow (ask you to sign, then submit the sell).
Repeats for the next 1h window (find market, poll candles, match rule, sign, order, monitor).
When it runs / stops
Runs: Once per 1h window; it keeps running until you stop or redeploy the workflow.
Stops: When you stop or remove the workflow, or the workflow engine restarts.
Setup
Opinion credentials: In the config node, attach your Opinion credentials (API key, EOA address, Opinion account address). The EOA address is the wallet you will use to sign orders when the workflow prompts you.
Telegram credentials (optional): Attach Telegram credentials if you want a notification each time a placeMakerBBO order fills (BUY, take-profit SELL, or stop-loss SELL).
Parameters:
Currency: The underlying asset for the 1h market (e.g. BTC, BNB, ETH).
Thresholds: One or more rules like 50/50,30/200,10/300 (minutes-to-close / min price move). The workflow buys when the current 1h candle satisfies one of these rules.
Order amount (USD): Size in dollars per market order.
Stop-loss (%): Percentage drop from average entry price that triggers an automatic sell (after you sign).
Direction: “up” to only buy when price moves up, “down” when it moves down, or leave empty to allow either (first match wins).
Poll interval (seconds) for placeMakerBBO: Passed to the order placement call; controls how often it polls for status (default 20 seconds).
Start: Trigger the workflow; when the next volatility condition is met, the workflow will prompt you to sign the buy (and later any sell) in your wallet. Binance 1h candles are read from the public API (no Binance credential required).
Key Features
Uses wallet signing for all orders (no private key in the workflow).
Take-profit at 0.99 and stop-loss by percentage from average price.
Telegram notification when a placeMakerBBO order fills (BUY or SELL), if Telegram credentials are set.
Repeats automatically for each 1h window.
Nodes in Use
User configuration: Collects currency, thresholds, order amount, stop-loss, direction, poll interval for placeMakerBBO (seconds), optional Telegram credentials, and Opinion credentials.
Opinion:
Find the current 1h market for the chosen currency
Place buy and sell orders at best bid/offer after you sign
Read order book and latest price for position monitoring
Human-in-the-loop: Ask you to approve and sign the order in your wallet when the workflow needs to place or close a trade.
Telegram: Send you a message when a placeMakerBBO order fills (if you provided Telegram credentials).
Binance (public): Read 1h candle data for the chosen currency (no Binance credential required).
Reference
(or your Opinion documentation link)
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.